bugfix: SpawnExecution couldn't find existing player because Game.Players() only returns alive players. This caused SpawnExecution to respawn each human player.

This commit is contained in:
Evan
2025-04-03 19:31:42 -07:00
parent e1a299c8c5
commit 9fa3691c5c
4 changed files with 10 additions and 18 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ export class PlayerImpl implements Player {
private _smallID: number,
private readonly playerInfo: PlayerInfo,
startTroops: number,
private _team: Team | null,
private readonly _team: Team | null,
) {
this._flag = playerInfo.flag;
this._name = sanitizeUsername(playerInfo.name);