Fix call to deprecated method ObjectRef:moveto

This commit is contained in:
ANAND 2019-07-05 16:12:14 +05:30
parent cf95dea033
commit 4a2a907bd1
No known key found for this signature in database
GPG Key ID: 3AD8A3C4A51AAB97

View File

@ -400,7 +400,7 @@ function ctf.move_to_spawn(name)
if ctf.team(tplayer.team) then if ctf.team(tplayer.team) then
local spawn = ctf.get_spawn(tplayer.team) local spawn = ctf.get_spawn(tplayer.team)
if spawn then if spawn then
player:moveto(spawn, false) player:move_to(spawn, false)
return true return true
end end
end end