forked from VoxeLibre/VoxeLibre
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:
parent
77382d930e
commit
02cb0818a1
|
@ -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 New Issue