+ Fixed a bug introduced by the last commit: the glass cage wasn't being removed

master
Giov4 2020-12-25 21:31:19 +01:00
parent 010b4724aa
commit bbeb109091
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ function create_glass_cage(player)
local node_pos = vector.round(vector.add(original_pos, relative_pos))
if minetest.get_node(node_pos).name == "air" then
minetest.add_node(node_pos, {name="default:glass"})
minetest.after(skywars_settings.loading_time, function()
minetest.remove_node(node_pos)
end)
end
end