mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-20 01:43:45 +01:00
When chests explode due to TNT (and likely creepers), the game crashes (#4577)
because of an undefined variable. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/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:
parent
77382d930e
commit
02cb0818a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user