summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-05-30 21:13:14 -0400
committerShadowNinja <shadowninja@minetest.net>2014-05-30 21:13:14 -0400
commit799c1b3409d37eb8c7f31541501913e916c496e0 (patch)
treeb6868682d4d40b434322ce6bb387ec04c4921d09
parentebc122fb3504c8de84371cdb6d45c1264c5d9d13 (diff)
Fix wear_represents logicorigin/fac
-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