From 1ec12a6f2c2437e8c9898c0e1157382126ff35c2 Mon Sep 17 00:00:00 2001 From: TomTom <93038247+AverageGithub@users.noreply.github.com> Date: Tue, 28 May 2024 17:58:18 +0200 Subject: [PATCH] Possibly fix tool issues v3 --- .../kotlin/com/artillexstudios/axminions/minions/Minion.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/main/kotlin/com/artillexstudios/axminions/minions/Minion.kt b/common/src/main/kotlin/com/artillexstudios/axminions/minions/Minion.kt index 3e6d1c5..6a43fa8 100644 --- a/common/src/main/kotlin/com/artillexstudios/axminions/minions/Minion.kt +++ b/common/src/main/kotlin/com/artillexstudios/axminions/minions/Minion.kt @@ -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