mirror of
https://github.com/correl/mage.git
synced 2024-12-30 19:10:36 +00:00
Fixed NPE on freeze fix in non started games
This commit is contained in:
parent
0f4cf84d93
commit
a95e92455c
1 changed files with 5 additions and 1 deletions
|
@ -1262,7 +1262,11 @@ public class GameController implements GameCallback {
|
|||
sb.append("<font color='red'>FIX command called by ").append(user.getName()).append("</font>");
|
||||
sb.append("<font size='-2'>"); // font resize start for all next logs
|
||||
sb.append("<br>Game ID: ").append(game.getId());
|
||||
sb.append("<br>Phase: ").append(game.getTurn().getPhaseType().toString()).append(" Step: ").append(game.getTurn().getStepType().toString());
|
||||
if (game.getTurn().getPhaseType() == null) {
|
||||
sb.append("<br>Phase: not started").append(" Step: not started");
|
||||
} else {
|
||||
sb.append("<br>Phase: ").append(game.getTurn().getPhaseType().toString()).append(" Step: ").append(game.getTurn().getStepType().toString());
|
||||
}
|
||||
// pings info
|
||||
sb.append("<br>");
|
||||
sb.append(getPingsInfo());
|
||||
|
|
Loading…
Reference in a new issue