show Table Waiting dialog on reconnect

This commit is contained in:
BetaSteward 2011-08-18 22:47:12 -04:00
parent 161404242f
commit 2ad50b2983
7 changed files with 82 additions and 29 deletions

View file

@ -172,7 +172,8 @@ public class Table implements Serializable {
public void leaveTable(UUID playerId) {
for (int i = 0; i < numSeats; i++ ) {
if (seats[i].getPlayer().getId().equals(playerId)) {
Player player = seats[i].getPlayer();
if (player != null && player.getId().equals(playerId)) {
seats[i].setPlayer(null);
if (state == TableState.STARTING)
state = TableState.WAITING;