mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2025-02-18 01:31:40 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user