mirror of
https://github.com/correl/mage.git
synced 2025-04-10 17:00:08 -09:00
* Moved concede messages before execution, so the order in the log is more logical.
This commit is contained in:
parent
16c3df2abd
commit
1131a84892
1 changed files with 2 additions and 2 deletions
|
@ -878,8 +878,8 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
||||||
public synchronized void quit(UUID playerId) {
|
public synchronized void quit(UUID playerId) {
|
||||||
Player player = state.getPlayer(playerId);
|
Player player = state.getPlayer(playerId);
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
player.quit(this);
|
|
||||||
fireInformEvent(player.getName() + " quits the match.");
|
fireInformEvent(player.getName() + " quits the match.");
|
||||||
|
player.quit(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -888,8 +888,8 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
|
||||||
Player player = state.getPlayer(playerId);
|
Player player = state.getPlayer(playerId);
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
logger.debug(new StringBuilder("Player ").append(player.getName()).append(" concedes game ").append(this.getId()));
|
logger.debug(new StringBuilder("Player ").append(player.getName()).append(" concedes game ").append(this.getId()));
|
||||||
player.concede(this);
|
|
||||||
fireInformEvent(player.getName() + " has conceded.");
|
fireInformEvent(player.getName() + " has conceded.");
|
||||||
|
player.concede(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue