diff --git a/mods/ctf/ctf_map/schem_map.lua b/mods/ctf/ctf_map/schem_map.lua index e8775b0..a6a5a1b 100644 --- a/mods/ctf/ctf_map/schem_map.lua +++ b/mods/ctf/ctf_map/schem_map.lua @@ -392,9 +392,3 @@ function ctf_match.create_teams() end end end - -minetest.register_on_joinplayer(function(player) - if ctf_map.map then - ctf_map.set_skybox(player) - end -end) diff --git a/mods/ctf/ctf_map/time_sky.lua b/mods/ctf/ctf_map/time_sky.lua index c25b40c..28a1ae9 100644 --- a/mods/ctf/ctf_map/time_sky.lua +++ b/mods/ctf/ctf_map/time_sky.lua @@ -45,3 +45,9 @@ function ctf_map.set_skybox_all() ctf_map.set_skybox(player) end end + +minetest.register_on_joinplayer(function(player) + if ctf_map.map then + ctf_map.set_skybox(player) + end +end)