forked from External/mage
Non modal tablewaiting dialog (allows to chat, to create several games). Pressing "Join" causes all your games appear on top. Updated logging. Fixed removing table not working (but not fully, as game ending still doesn't work).
This commit is contained in:
parent
fa2a993275
commit
4133a13120
3 changed files with 61 additions and 28 deletions
|
|
@ -207,11 +207,11 @@ public class TableManager {
|
|||
public void removeTable(UUID tableId) {
|
||||
if (tables.containsKey(tableId)) {
|
||||
Table table = tables.get(tableId);
|
||||
controllers.remove(tableId);
|
||||
tables.remove(tableId);
|
||||
GamesRoomManager.getInstance().removeTable(tableId);
|
||||
table.getMatch().getGame().end();
|
||||
}
|
||||
controllers.remove(tableId);
|
||||
tables.remove(tableId);
|
||||
GamesRoomManager.getInstance().removeTable(tableId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue