ctf_map: Move on_joinplayer callback for skybox mgmt. into time_sky.lua
This commit is contained in:
parent
04ac8223a9
commit
17a974c1c3
2 changed files with 6 additions and 6 deletions
|
@ -392,9 +392,3 @@ function ctf_match.create_teams()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
|
||||||
if ctf_map.map then
|
|
||||||
ctf_map.set_skybox(player)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
|
@ -45,3 +45,9 @@ function ctf_map.set_skybox_all()
|
||||||
ctf_map.set_skybox(player)
|
ctf_map.set_skybox(player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.register_on_joinplayer(function(player)
|
||||||
|
if ctf_map.map then
|
||||||
|
ctf_map.set_skybox(player)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
Loading…
Reference in a new issue