Fix wear_represents logic

This commit is contained in:
ShadowNinja 2014-05-30 21:13:14 -04:00
parent ebc122fb35
commit 799c1b3409
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ minetest.register_abm({
if not srcstack:is_empty() then if not srcstack:is_empty() then
local itemdef = minetest.registered_items[srcstack:get_name()] local itemdef = minetest.registered_items[srcstack:get_name()]
if itemdef and if itemdef and
itemdef.wear_represents and (not itemdef.wear_represents or
itemdef.wear_represents == "mechanical_wear" and itemdef.wear_represents == "mechanical_wear") and
srcstack:get_wear() ~= 0 then srcstack:get_wear() ~= 0 then
repairable = true repairable = true
end end