From cef1ead81090a360b9bb6aa8355867a2a5f805cc Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 24 Nov 2022 22:15:00 +0700 Subject: [PATCH] isDamageableItem check is useless --- .../ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt index 266e85377..cf2ec4a80 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/EnergyContainerRecipe.kt @@ -43,7 +43,7 @@ class EnergyContainerRecipe( if (itemStack.isEnchantable) { for (it in container.iterator()) { - if (!it.isEmpty && it.isDamageableItem && it.isEnchanted) { + if (!it.isEmpty && it.isEnchanted) { for ((key, value) in it.allEnchantments) { itemStack.enchant(key, value) }