forked from mtcontrib/3d_armor
Fix armor wear level being fully restored on item drop
This commit is contained in:
parent
19d45efd12
commit
1886fe6b1a
@ -413,7 +413,7 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then
|
|||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
for _,stack in ipairs(drop) do
|
for _,stack in ipairs(drop) do
|
||||||
local obj = minetest.add_item(pos, stack:get_name())
|
local obj = minetest.add_item(pos, stack)
|
||||||
if obj then
|
if obj then
|
||||||
local x = math.random(1, 5)
|
local x = math.random(1, 5)
|
||||||
if math.random(1,2) == 1 then
|
if math.random(1,2) == 1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user