From 6c9e0eeb0ea286a3ef38c87ccaf395cba41f0eb1 Mon Sep 17 00:00:00 2001 From: Brianna Date: Sun, 7 Jul 2019 03:27:31 -0400 Subject: [PATCH] Fix --- .../main/java/com/songoda/epicbuckets/utils/Materials.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EpicBuckets-Plugin/src/main/java/com/songoda/epicbuckets/utils/Materials.java b/EpicBuckets-Plugin/src/main/java/com/songoda/epicbuckets/utils/Materials.java index e4f4b1a..8ae54c9 100644 --- a/EpicBuckets-Plugin/src/main/java/com/songoda/epicbuckets/utils/Materials.java +++ b/EpicBuckets-Plugin/src/main/java/com/songoda/epicbuckets/utils/Materials.java @@ -1,6 +1,6 @@ package com.songoda.epicbuckets.utils; -import com.songoda.epicbuckets.utils.version.NMSUtil; +import com.songoda.epicbuckets.EpicBuckets; import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.entity.EntityType; @@ -1205,7 +1205,7 @@ public enum Materials { } public static Materials getMaterials(Material material, byte data) { - if (NMSUtil.getVersionNumber() > 12) { + if (EpicBuckets.getInstance().isServerVersionAtLeast(ServerVersion.V1_12)) { return fromString(material.name()); } else { return requestMaterials(material.name(), data);