forked from External/mage
There is no need to call simple getter from the same class.
This commit is contained in:
parent
12820b54d4
commit
192110cd68
2 changed files with 12 additions and 12 deletions
|
|
@ -985,11 +985,11 @@ public class TableController {
|
|||
}
|
||||
|
||||
public synchronized TableState getTableState() {
|
||||
return getTable().getState();
|
||||
return table.getState();
|
||||
}
|
||||
|
||||
public synchronized boolean changeTableStateToStarting() {
|
||||
if (getTable().getState() != TableState.READY_TO_START) {
|
||||
if (table.getState() != TableState.READY_TO_START) {
|
||||
// tournament is not ready, can't start
|
||||
return false;
|
||||
}
|
||||
|
|
@ -997,7 +997,7 @@ public class TableController {
|
|||
logger.debug("Not alle Seats are occupied: stop start tableId:" + table.getId());
|
||||
return false;
|
||||
}
|
||||
getTable().setState(TableState.STARTING);
|
||||
table.setState(TableState.STARTING);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue