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