Fix invalid global call in mcl_chests LBM (#4667)

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4667
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
This commit is contained in:
Mikita Wiśniewski 2024-09-29 13:34:20 +02:00 committed by the-real-herowl
parent d264ba70d8
commit 9cb4f51468

View file

@ -79,7 +79,7 @@ minetest.register_lbm({
local node_name = node.name local node_name = node.name
node.name = node_name .. "_small" node.name = node_name .. "_small"
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
select_and_spawn_entity(pos, node) mcl_chests.select_and_spawn_entity(pos, node)
if node_name == "mcl_chests:trapped_chest_on" then if node_name == "mcl_chests:trapped_chest_on" then
minetest.log("action", "[mcl_chests] Disabled active trapped chest on load: " .. minetest.pos_to_string(pos)) minetest.log("action", "[mcl_chests] Disabled active trapped chest on load: " .. minetest.pos_to_string(pos))
mcl_chests.chest_update_after_close(pos) mcl_chests.chest_update_after_close(pos)