mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-29 12:45:18 +01:00
commit
32fd27f8d2
@ -640,6 +640,8 @@ class Minion(
|
|||||||
|
|
||||||
val meta = toolMeta as? Damageable ?: return
|
val meta = toolMeta as? Damageable ?: return
|
||||||
|
|
||||||
|
if (toolMeta?.isUnbreakable == true) return
|
||||||
|
|
||||||
if (Math.random() > 1f / (meta.getEnchantLevel(Enchantment.DURABILITY) + 1)) return
|
if (Math.random() > 1f / (meta.getEnchantLevel(Enchantment.DURABILITY) + 1)) return
|
||||||
|
|
||||||
if ((tool?.type?.maxDurability ?: return) <= meta.damage + amount) {
|
if ((tool?.type?.maxDurability ?: return) <= meta.damage + amount) {
|
||||||
|
Loading…
Reference in New Issue
Block a user