Fix team spawn on new player
This commit is contained in:
parent
baa39fe6a7
commit
fc0c89553c
2 changed files with 2 additions and 8 deletions
|
@ -110,13 +110,7 @@ ctf.register_on_new_game(function()
|
|||
ctf.join(name, team)
|
||||
end
|
||||
|
||||
team = ctf.player(name).team
|
||||
if ctf.team(team) then
|
||||
local spawn = ctf.get_spawn(team)
|
||||
if spawn then
|
||||
player:moveto(spawn, false)
|
||||
end
|
||||
end
|
||||
ctf.move_to_spawn(name)
|
||||
|
||||
if ctf.setting("match.clear_inv") then
|
||||
local inv = player:get_inventory()
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 17e7a2b529e1a10c866a2b588f0971daf7931946
|
||||
Subproject commit 9196eec940eb25ea55b9b95dee729dd66f5ae61b
|
Loading…
Reference in a new issue