forked from External/mage
* Fixed a bug that tournament player was not removed correctly, if he left thetournament start panel. Changes to logging.
This commit is contained in:
parent
5f85d52837
commit
5a2b445e43
2 changed files with 12 additions and 6 deletions
|
|
@ -193,7 +193,7 @@ public class TableManager {
|
|||
public void leaveTable(UUID userId, UUID tableId) {
|
||||
if (controllers.containsKey(tableId)) {
|
||||
controllers.get(tableId).leaveTable(userId);
|
||||
// table not started yet and user is he owner, remove the table
|
||||
// table not started yet and user is the owner, remove the table
|
||||
if (isTableOwner(tableId, userId)) {
|
||||
if (getTable(tableId).getState().equals(TableState.WAITING)
|
||||
|| getTable(tableId).getState().equals(TableState.STARTING)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue