forked from External/mage
Added junit test that starts Mage.Client and starts 10 games in a row. Minor fixes. Client is maximized now.
This commit is contained in:
parent
9c3ff863e8
commit
8b77a67574
9 changed files with 46 additions and 10 deletions
|
|
@ -280,15 +280,20 @@ public class GamePanel extends javax.swing.JPanel {
|
|||
this.txtPriority.setText(game.getPriorityPlayerName());
|
||||
this.txtTurn.setText(Integer.toString(game.getTurn()));
|
||||
for (PlayerView player: game.getPlayers()) {
|
||||
if (player != null) {
|
||||
//if (player != null) {
|
||||
if (players.containsKey(player.getPlayerId())) {
|
||||
players.get(player.getPlayerId()).update(player);
|
||||
} else {
|
||||
logger.warning("Couldn't find player.");
|
||||
logger.warning(" uuid:" + player.getPlayerId());
|
||||
logger.warning(" players:");
|
||||
for (PlayAreaPanel p : players.values()) {
|
||||
logger.warning(""+p);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
logger.warning("Player object is null.");
|
||||
}
|
||||
//} else {
|
||||
//logger.warning("Player object is null.");
|
||||
//}
|
||||
}
|
||||
|
||||
this.stack.loadCards(game.getStack(), bigCard, gameId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue