summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--technic/machines/MV/tool_workshop.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/technic/machines/MV/tool_workshop.lua b/technic/machines/MV/tool_workshop.lua
index 4f2fb51..8bc95ea 100644
--- a/technic/machines/MV/tool_workshop.lua
+++ b/technic/machines/MV/tool_workshop.lua
@@ -65,8 +65,8 @@ minetest.register_abm({
if not srcstack:is_empty() then
local itemdef = minetest.registered_items[srcstack:get_name()]
if itemdef and
- itemdef.wear_represents and
- itemdef.wear_represents == "mechanical_wear" and
+ (not itemdef.wear_represents or
+ itemdef.wear_represents == "mechanical_wear") and
srcstack:get_wear() ~= 0 then
repairable = true
end