forked from minetest-mods/technic
Fix wear_represents logic
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user