From 17a974c1c3cb91d093a9ac1f0844348fac529f74 Mon Sep 17 00:00:00 2001 From: ANAND Date: Tue, 29 Oct 2019 15:23:15 +0530 Subject: [PATCH] ctf_map: Move on_joinplayer callback for skybox mgmt. into time_sky.lua --- mods/ctf/ctf_map/schem_map.lua | 6 ------ mods/ctf/ctf_map/time_sky.lua | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) 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)