1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-28 11:40:36 +01:00

Fix armor wear level being fully restored on item drop

This commit is contained in:
stujones11 2014-04-14 19:28:23 +01:00
parent 19d45efd12
commit 1886fe6b1a

View File

@ -413,7 +413,7 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then
end)
else
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
local x = math.random(1, 5)
if math.random(1,2) == 1 then