forked from mtcontrib/bitchange
Cheaper repair
This commit is contained in:
parent
422d29d765
commit
78f27c4bd9
@ -125,10 +125,10 @@ minetest.register_abm({
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if(wear - 2000 < 0) then
|
if(wear - 4000 < 0) then
|
||||||
src:add_wear(-2000 + wear)
|
src:add_wear(-4000 + wear)
|
||||||
else
|
else
|
||||||
src:add_wear(-2000)
|
src:add_wear(-4000)
|
||||||
end
|
end
|
||||||
inv:set_stack("src", 1, src)
|
inv:set_stack("src", 1, src)
|
||||||
set_infotext(meta, 2)
|
set_infotext(meta, 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user