When chests explode due to TNT (and likely creepers), the game crashes (#4577)

because of an undefined variable.

Reviewed-on: VoxeLibre/VoxeLibre#4577
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
This commit is contained in:
kno10 2024-08-07 13:07:48 +02:00 committed by the-real-herowl
parent 77382d930e
commit 02cb0818a1
1 changed files with 1 additions and 0 deletions

View File

@ -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