Skip to content

Commit

Permalink
Translate side before checking to remove from available sides. Try ge…
Browse files Browse the repository at this point in the history
…tLocalizedSide().
  • Loading branch information
riverwanderer committed Sep 6, 2023
1 parent 3d4ebb7 commit 77b373a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public Component getControls() {
final ArrayList<String> alreadyTaken = new ArrayList<>();

for (final PlayerInfo p : players) {
alreadyTaken.add(Resources.getString(p.side));
alreadyTaken.add(p.getLocalizedSide());
}

availableSides.removeAll(alreadyTaken);
Expand Down Expand Up @@ -749,7 +749,7 @@ public List<String> getAvailableSides() {
final ArrayList<String> alreadyTaken = new ArrayList<>();

for (final PlayerInfo p : players) {
alreadyTaken.add(Resources.getString(p.side));
alreadyTaken.add(p.getLocalizedSide());
}

availableSides.removeAll(alreadyTaken);
Expand All @@ -761,7 +761,7 @@ protected String promptForSide() {
final ArrayList<String> alreadyTaken = new ArrayList<>();

for (final PlayerInfo p : players) {
alreadyTaken.add(Resources.getString(p.side));
alreadyTaken.add(p.getLocalizedSide());
}

availableSides.removeAll(alreadyTaken);
Expand Down

0 comments on commit 77b373a

Please sign in to comment.