From a55bfa8b29fe1c607e4f782a064b188f7dd5c224 Mon Sep 17 00:00:00 2001 From: jascotty2 Date: Tue, 10 Sep 2019 15:52:07 -0500 Subject: [PATCH] materials only match exact --- .../java/com/songoda/core/compatibility/CompatibleMaterial.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java b/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java index c6b19b31..1c1718a4 100644 --- a/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java +++ b/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java @@ -1241,7 +1241,7 @@ public enum CompatibleMaterial { * @return true if material of the ItemStack matches this item, corrected for legacy data */ public boolean matches(ItemStack item) { - return item != null && item.getType() == material && (data == null || item.getDurability() == data); // eons ago, ItemStack.getData() would return a byte. 1.7 doesn't, though. + return item != null && !usesCompatibility() && item.getType() == material && (data == null || item.getDurability() == data); // eons ago, ItemStack.getData() would return a byte. 1.7 doesn't, though. } /**