mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2025-01-05 18:37:44 +01:00
Fix unbreakable items
This commit is contained in:
parent
4cc4b95db0
commit
35bd93322e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user