Fix unbreakable items

This commit is contained in:
Xayanix 2024-04-07 11:06:19 +02:00
parent 4cc4b95db0
commit 35bd93322e

View File

@ -640,7 +640,7 @@ class Minion(
val meta = toolMeta as? Damageable ?: return
if (tool?.itemMeta?.isUnbreakable == true) return
if (toolMeta?.isUnbreakable == true) return
if (Math.random() > 1f / (meta.getEnchantLevel(Enchantment.DURABILITY) + 1)) return