From 02cb0818a142e9a521764cc1fa9332e32de7ff06 Mon Sep 17 00:00:00 2001 From: kno10 Date: Wed, 7 Aug 2024 13:07:48 +0200 Subject: [PATCH] When chests explode due to TNT (and likely creepers), the game crashes (#4577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit because of an undefined variable. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4577 Reviewed-by: Mikita Wiśniewski Co-authored-by: kno10 Co-committed-by: kno10 --- mods/ITEMS/mcl_chests/api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_chests/api.lua b/mods/ITEMS/mcl_chests/api.lua index 3145a1657..a1834dac6 100644 --- a/mods/ITEMS/mcl_chests/api.lua +++ b/mods/ITEMS/mcl_chests/api.lua @@ -365,6 +365,7 @@ end local function on_chest_blast(pos) local node = minetest.get_node(pos) + local drop_items_chest = mcl_util.drop_items_from_meta_container("main") drop_items_chest(pos, node) minetest.remove_node(pos) end