From 799c1b3409d37eb8c7f31541501913e916c496e0 Mon Sep 17 00:00:00 2001 From: ShadowNinja <shadowninja@minetest.net> Date: Sat, 31 May 2014 03:13:14 +0200 Subject: [PATCH] Fix wear_represents logic --- technic/machines/MV/tool_workshop.lua | 4 ++-- 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 @@ 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 -- Gitblit v1.8.0