Possibly fix tool issues v3

This commit is contained in:
TomTom 2024-05-28 17:58:18 +02:00
parent 21ddf1629b
commit 1ec12a6f2c

View File

@ -674,7 +674,7 @@ class Minion(
tool.itemMeta = toolMeta tool.itemMeta = toolMeta
updateInventories() updateInventories()
return return
} else if (remaining <= 1) { } else {
// Tool is breaking // Tool is breaking
if (Config.CAN_BREAK_TOOLS()) { if (Config.CAN_BREAK_TOOLS()) {
if (Config.PULL_FROM_CHEST()) { if (Config.PULL_FROM_CHEST()) {
@ -711,7 +711,6 @@ class Minion(
} }
} }
override fun canUseTool(): Boolean { override fun canUseTool(): Boolean {
val tool = tool ?: return false val tool = tool ?: return false
val toolMeta = toolMeta as? Damageable ?: return false val toolMeta = toolMeta as? Damageable ?: return false