diff --git a/src/engine/server/init.lua b/src/engine/server/init.lua index 56c34ba9..9104eb4e 100644 --- a/src/engine/server/init.lua +++ b/src/engine/server/init.lua @@ -104,7 +104,7 @@ function onPostConnect( event ) -- Set spawn point local spawnPoint = _G.gameserver.getSpawnPoint( player ) - local position = _G.vector.origin + vector( 0, _G.game.tileSize ) + local position = _G.vector.origin + _G.vector( 0, _G.game.tileSize ) if ( spawnPoint ) then position = spawnPoint:getPosition() end