forked from External/mage
Some minor changes to debug logging messages and server user handling.
This commit is contained in:
parent
64e0b4d1b9
commit
90b3e75435
5 changed files with 25 additions and 11 deletions
|
|
@ -207,7 +207,8 @@ public class TableManager {
|
|||
}
|
||||
|
||||
public void leaveTable(UUID userId, UUID tableId) {
|
||||
if (controllers.containsKey(tableId)) {
|
||||
TableController tableController = controllers.get(tableId);
|
||||
if (tableController != null) {
|
||||
// table not started yet and user is the owner, remove the table
|
||||
Table table = getTable(tableId);
|
||||
if (table != null
|
||||
|
|
@ -217,7 +218,7 @@ public class TableManager {
|
|||
removeTable(tableId);
|
||||
|
||||
} else {
|
||||
controllers.get(tableId).leaveTable(userId);
|
||||
tableController.leaveTable(userId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue