mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-25 18:30:29 +01:00
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