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; } }