diff --git a/src/main/java/com/infamous/dungeons_libraries/capabilities/builtinenchants/AttacherBuiltInEnchantments.java b/src/main/java/com/infamous/dungeons_libraries/capabilities/builtinenchants/AttacherBuiltInEnchantments.java index 326cf21..19651fc 100644 --- a/src/main/java/com/infamous/dungeons_libraries/capabilities/builtinenchants/AttacherBuiltInEnchantments.java +++ b/src/main/java/com/infamous/dungeons_libraries/capabilities/builtinenchants/AttacherBuiltInEnchantments.java @@ -45,6 +45,9 @@ public void deserializeNBT(CompoundTag nbt) { public static void attach(final AttachCapabilitiesEvent event) { final AttacherBuiltInEnchantments.BuiltInEnchantmentsProvider provider = new AttacherBuiltInEnchantments.BuiltInEnchantmentsProvider(event.getObject()); - event.addCapability(AttacherBuiltInEnchantments.BuiltInEnchantmentsProvider.IDENTIFIER, provider); + + if ( event.getObject().isEnchantable() && event.getObject().getMaxStackSize() == 1 ) { + event.addCapability(AttacherBuiltInEnchantments.BuiltInEnchantmentsProvider.IDENTIFIER, provider); + } } }