Workbench doesn't repair w/ disable_repair=1 group

This commit is contained in:
Wuzzy 2023-07-21 15:42:12 +02:00
parent 0096b18d8e
commit 729959a477

View File

@ -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