mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +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
1 changed files with 1 additions and 0 deletions
|
@ -365,6 +365,7 @@ end
|
||||||
|
|
||||||
local function on_chest_blast(pos)
|
local function on_chest_blast(pos)
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
|
local drop_items_chest = mcl_util.drop_items_from_meta_container("main")
|
||||||
drop_items_chest(pos, node)
|
drop_items_chest(pos, node)
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue