From 515a47e4637757b8de7c2855ca50465b96dd78b6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 12 Jun 2017 20:49:35 +0200 Subject: [PATCH] Fix possible item duplication in large chest --- mods/ITEMS/mcl_chests/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_chests/init.lua b/mods/ITEMS/mcl_chests/init.lua index 5997f95490..ff8225bd7d 100644 --- a/mods/ITEMS/mcl_chests/init.lua +++ b/mods/ITEMS/mcl_chests/init.lua @@ -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,