From 799c1b3409d37eb8c7f31541501913e916c496e0 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Fri, 30 May 2014 21:13:14 -0400 Subject: [PATCH] Fix wear_represents logic --- technic/machines/MV/tool_workshop.lua | 4 ++-- 1 file 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 -- 2.30.2