Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Oct 15, 2023
1 parent dda49fd commit bae190c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mods/ctf/ctf_map/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ local chest_def = {

local inv = minetest.get_inventory({type = "node", pos = pos})
if not inv or inv:is_empty("main") then
minetest.set_node(pos, {name = "air"})
minetest.show_formspec(player:get_player_name(), "", player:get_inventory_formspec())
minetest.close_formspec(player:get_player_name(), "")
minetest.after(0, function()
minetest.set_node(pos, {name = "air"})
end)
end
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
Expand Down

0 comments on commit bae190c

Please sign in to comment.