Skip to content

Commit

Permalink
Aftermerge corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Jan 8, 2023
1 parent 81692e4 commit ddb1cf7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 5 additions & 1 deletion megamek/src/megamek/client/ui/swing/MiniReportDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
import javax.swing.text.Document;
import java.awt.*;
import java.awt.event.*;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;

/**
* Shows reports, with an Okay JButton
Expand Down Expand Up @@ -192,7 +194,9 @@ private void updatePlayerChoice() {
lastChoice = (lastChoice != null ? lastChoice : name);
comboPlayer.removeAllItems();
comboPlayer.setEnabled(true);
for (Player player : currentClient.getGame().getPlayersVectorSorted()) {
List<Player> sortedPlayerList = currentClient.getGame().getPlayersList();
sortedPlayerList.sort(Comparator.comparingInt(Player::getId));
for (Player player : sortedPlayerList) {
String playerDisplay = String.format("%-12s", player.getName());
comboPlayer.addItem(playerDisplay);
}
Expand Down
4 changes: 0 additions & 4 deletions megamek/src/megamek/common/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ public class Game extends AbstractGame implements Serializable {
*/
public final Version version = MMConstants.VERSION;

private Vector<Player> players = new Vector<>();
private Hashtable<Integer, Player> playerIds = new Hashtable<>();
private Vector<Team> teams = new Vector<>();

private GameOptions options = new GameOptions();

private Board board = new Board();
Expand Down
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/Mech.java
Original file line number Diff line number Diff line change
Expand Up @@ -6549,4 +6549,4 @@ public boolean isIndustrialMek() {
public boolean getsAutoExternalSearchlight() {
return true;
}
}
}

0 comments on commit ddb1cf7

Please sign in to comment.