ctf_map: Move on_joinplayer callback for skybox mgmt. into time_sky.lua

This commit is contained in:
ANAND 2019-10-29 15:23:15 +05:30
parent 04ac8223a9
commit 17a974c1c3
No known key found for this signature in database
GPG key ID: 3AD8A3C4A51AAB97
2 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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)