From dfeaa7fd80f2a334890cc4d34647c688156af1ee Mon Sep 17 00:00:00 2001 From: Majrusz Date: Sun, 28 Aug 2022 11:58:01 +0200 Subject: [PATCH] Fixed major bug --- src/main/java/com/majruszsaccessories/AccessoryHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/majruszsaccessories/AccessoryHandler.java b/src/main/java/com/majruszsaccessories/AccessoryHandler.java index 0df90a49..06341af8 100644 --- a/src/main/java/com/majruszsaccessories/AccessoryHandler.java +++ b/src/main/java/com/majruszsaccessories/AccessoryHandler.java @@ -82,7 +82,7 @@ public static ItemStack findAccessory( LivingEntity entity, AccessoryItem item ) } } else { ItemStack itemStack = entity.getOffhandItem(); - if( itemStack.getItem() instanceof AccessoryItem ) { + if( itemStack.is( item ) ) { return itemStack; } }