mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-25 12:05:56 +01:00
Fix an infinite recursion
This commit is contained in:
parent
28eaaf9e02
commit
73b53feba5
@ -656,7 +656,7 @@ class Minion(
|
|||||||
|
|
||||||
setTool(it)
|
setTool(it)
|
||||||
linkedInventory?.remove(it)
|
linkedInventory?.remove(it)
|
||||||
return canUseTool()
|
return true
|
||||||
}
|
}
|
||||||
setTool(ItemStack(Material.AIR))
|
setTool(ItemStack(Material.AIR))
|
||||||
} else {
|
} else {
|
||||||
@ -674,7 +674,7 @@ class Minion(
|
|||||||
linkedInventory?.addItem(getTool())
|
linkedInventory?.addItem(getTool())
|
||||||
setTool(it)
|
setTool(it)
|
||||||
linkedInventory?.remove(it)
|
linkedInventory?.remove(it)
|
||||||
return canUseTool()
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user