diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/item/EnergySwordItem.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/item/EnergySwordItem.kt index d8ad325eb..e857b9bbc 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/item/EnergySwordItem.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/item/EnergySwordItem.kt @@ -76,6 +76,10 @@ class EnergySwordItem : Item(Properties().stacksTo(1).rarity(Rarity.RARE).tab(Ov dischargedAttributes = builder.build() } + override fun isEnchantable(p_41456_: ItemStack): Boolean { + return p_41456_.count == 1 + } + override fun getDestroySpeed(itemStack: ItemStack, blockState: BlockState): Float { val energy = itemStack.getCapability(MatteryCapability.ENERGY).orNull() ?: return 1f