diff --git a/src/main/java/xyz/nucleoid/plasmid/game/common/team/TeamManager.java b/src/main/java/xyz/nucleoid/plasmid/game/common/team/TeamManager.java index dbd97830..45820469 100644 --- a/src/main/java/xyz/nucleoid/plasmid/game/common/team/TeamManager.java +++ b/src/main/java/xyz/nucleoid/plasmid/game/common/team/TeamManager.java @@ -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); }