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