1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

[dropondie & u_inv] Drop bags themselves, not their content

This commit is contained in:
LeMagnesium
2016-02-01 19:58:57 +01:00
parent 46004d9bf2
commit 1b9fc689ce
2 changed files with 41 additions and 20 deletions

View File

@ -46,7 +46,7 @@ minetest.register_on_dieplayer(function(player)
-- Drop unified_inventory bags and their contents
if minetest.get_modpath("unified_inventory") then
local bag_id = {"bag1", "bag2", "bag3", "bag4"}
--[[ local bag_id = {"bag1", "bag2", "bag3", "bag4"}
local contents_id = ""
local n = 0
@ -61,7 +61,13 @@ minetest.register_on_dieplayer(function(player)
end
end
end
]]
for n = 1, 4 do
local stack = unified_inventory.extract_bag(player, n)
if stack then
drop(pos, stack)
end
end
end
end)