mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Fix possible item duplication in large chest
This commit is contained in:
parent
2be0893cc8
commit
515a47e463
1 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ minetest.register_node("mcl_chests:"..basename.."_left", {
|
|||
if not leftover:is_empty() then
|
||||
local other_pos = get_chest_neighborpos(pos, minetest.get_node(pos).param2, "left")
|
||||
local other_inv = minetest.get_inventory({type="node", pos=other_pos})
|
||||
other_inv:add_item("main", stack)
|
||||
other_inv:add_item("main", leftover)
|
||||
end
|
||||
end
|
||||
-- END OF LISTRING WORKAROUND
|
||||
|
@ -309,7 +309,7 @@ minetest.register_node("mcl_chests:"..basename.."_right", {
|
|||
local leftover = other_inv:add_item("main", stack)
|
||||
if not leftover:is_empty() then
|
||||
local inv = minetest.get_inventory({type="node", pos=pos})
|
||||
inv:add_item("main", stack)
|
||||
inv:add_item("main", leftover)
|
||||
end
|
||||
-- END OF LISTRING WORKAROUND
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue