Fix error spam in Atlas

Atlas has no notion of player removal. Each entity would trigger an error in Player.js

Reported by: @trompetin17
Reviewed by: @trompetin17
Pull Request: #8006
This commit is contained in:
Stan
2025-05-29 20:50:38 +02:00
parent 02e15da51b
commit d3017b6f9c
@@ -69,7 +69,8 @@ function LoadPlayerSettings(settings, newPlayers)
if (i === 0)
continue;
cmpPlayer.SetRemoved(getPlayerSetting(i, "Removed"));
// Atlas has no information about player removal.
cmpPlayer.SetRemoved(getPlayerSetting(i, "Removed") === true);
// StartingResources
if (settings.PlayerData[i].Resources !== undefined)