mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-25 12:05:56 +01:00
Possibly fix tool issues v3
This commit is contained in:
parent
21ddf1629b
commit
1ec12a6f2c
@ -674,7 +674,7 @@ class Minion(
|
||||
tool.itemMeta = toolMeta
|
||||
updateInventories()
|
||||
return
|
||||
} else if (remaining <= 1) {
|
||||
} else {
|
||||
// Tool is breaking
|
||||
if (Config.CAN_BREAK_TOOLS()) {
|
||||
if (Config.PULL_FROM_CHEST()) {
|
||||
@ -711,7 +711,6 @@ class Minion(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
override fun canUseTool(): Boolean {
|
||||
val tool = tool ?: return false
|
||||
val toolMeta = toolMeta as? Damageable ?: return false
|
||||
|
Loading…
Reference in New Issue
Block a user