mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2024-12-12 10:13:58 +02:00
Fixing bug when RSO is disabled. Thanks @xkuyax
This commit is contained in:
parent
717004cfe5
commit
aee8ed5a75
@ -316,7 +316,7 @@ function SendPlayerToNewSpawnAndCreateIt(playerName, spawn, moatEnabled)
|
||||
CreateWaterStrip(game.surfaces[GAME_SURFACE_NAME],
|
||||
{x=spawn.x+WATER_SPAWN_OFFSET_X, y=spawn.y+WATER_SPAWN_OFFSET_Y+1},
|
||||
WATER_SPAWN_LENGTH)
|
||||
GenerateStartingResources(surface, spawn)
|
||||
GenerateStartingResources(game.surfaces[GAME_SURFACE_NAME], spawn)
|
||||
|
||||
-- Send the player to that position
|
||||
game.players[playerName].teleport(spawn, GAME_SURFACE_NAME)
|
||||
|
Loading…
Reference in New Issue
Block a user