mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-26 19:00: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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user