This commit is contained in:
Brianna 2019-07-07 03:27:31 -04:00
parent d3a6831bd8
commit 6c9e0eeb0e

View File

@ -1,6 +1,6 @@
package com.songoda.epicbuckets.utils; package com.songoda.epicbuckets.utils;
import com.songoda.epicbuckets.utils.version.NMSUtil; import com.songoda.epicbuckets.EpicBuckets;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.entity.EntityType; import org.bukkit.entity.EntityType;
@ -1205,7 +1205,7 @@ public enum Materials {
} }
public static Materials getMaterials(Material material, byte data) { public static Materials getMaterials(Material material, byte data) {
if (NMSUtil.getVersionNumber() > 12) { if (EpicBuckets.getInstance().isServerVersionAtLeast(ServerVersion.V1_12)) {
return fromString(material.name()); return fromString(material.name());
} else { } else {
return requestMaterials(material.name(), data); return requestMaterials(material.name(), data);