Skip to content

Commit

Permalink
Fix: forgot to clean up team "unknown"
Browse files Browse the repository at this point in the history
  • Loading branch information
ellieisjelly committed Jan 23, 2024
1 parent f34e895 commit 97146d3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ private PlayerOfferResult onOffer(PlayerOffer offer) {
private void onDestroy(GameCloseReason gameCloseReason) {
Sabotage.activeGames.remove(this);
Scoreboard scoreboard = gameSpace.getServer().getScoreboard();
scoreboard.removeTeam(scoreboard.getTeam("unknown"));
scoreboard.removeTeam(scoreboard.getTeam("innocent"));
scoreboard.removeTeam(scoreboard.getTeam("detective"));
scoreboard.removeTeam(scoreboard.getTeam("saboteur"));
Expand Down

0 comments on commit 97146d3

Please sign in to comment.