Skip to content

Commit

Permalink
Fix: don't remove player from team twice if clearing after TeamManage…
Browse files Browse the repository at this point in the history
…r has made them offline
  • Loading branch information
Gegy committed Jun 9, 2024
1 parent 2cbca9a commit 4e4038c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public boolean removePlayerFrom(PlayerRef player, GameTeamKey team) {
throw new IllegalStateException("Player " + player + " was not in team " + team + ", but had a mapping");
}

var entity = this.gameSpace.getPlayers().getEntity(player.id());
var entity = state.onlinePlayers.getEntity(player.id());
if (entity != null) {
this.removeOnlinePlayer(entity, state);
}
Expand Down

0 comments on commit 4e4038c

Please sign in to comment.