mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
show Table Waiting dialog on reconnect
This commit is contained in:
parent
161404242f
commit
2ad50b2983
7 changed files with 82 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue