Fix call to deprecated method ObjectRef:moveto

master
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
1 changed files with 1 additions and 1 deletions

View File

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