Fix wear_represents logic

This commit is contained in:
ShadowNinja 2014-05-30 21:13:14 -04:00
parent ebc122fb35
commit 799c1b3409

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