From 729959a4772724bf3f9c301e99907f6f240f0084 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 21 Jul 2023 15:42:12 +0200 Subject: [PATCH] Workbench doesn't repair w/ disable_repair=1 group --- src/workbench.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/workbench.lua b/src/workbench.lua index c734f72..d7b4dc0 100644 --- a/src/workbench.lua +++ b/src/workbench.lua @@ -37,10 +37,12 @@ end -- Tools allowed to be repaired function workbench:repairable(stack) - if custom_repairable[stack] then return true end + if custom_repairable[stack] then + return true + end for _, t in ipairs(repairable_tools) do - if stack:find(t) then + if stack:find(t) and minetest.get_item_group(t, "disable_repair") == 0 then return true end end