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:
parent
19d45efd12
commit
1886fe6b1a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user