isDamageableItem check is useless

This commit is contained in:
DBotThePony 2022-11-24 22:15:00 +07:00
parent 06bd41946c
commit cef1ead810
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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)
}