1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-14 10:23:17 +02:00

Possible bug fix for reported error but not 100% sure...

This commit is contained in:
Oarcinae 2020-08-24 21:32:54 -04:00
parent 5d02a1f5ca
commit af050c6d65

View File

@ -595,6 +595,11 @@ function CreateSpawnCtrlGuiTab(tab_container, player)
end
end
-- @todo Figure out why this case could be hit... Fix for error report in github.
if (global.ocore.playerCooldowns[player.name] == nil) then
global.ocore.playerCooldowns[player.name] = {setRespawn=game.tick}
end
-- Sets the player's custom spawn point to their current location
if ((game.tick - global.ocore.playerCooldowns[player.name].setRespawn) >
(global.ocfg.respawn_cooldown_min * TICKS_PER_MINUTE)) then