mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
* Fixed a problem of match handling if a player left XMage during sideboarding.
This commit is contained in:
parent
6f9a6ccabf
commit
b770c9d0ab
2 changed files with 3 additions and 2 deletions
|
|
@ -93,13 +93,14 @@ public abstract class MatchImpl implements Match {
|
|||
public boolean leave(UUID playerId) {
|
||||
MatchPlayer mPlayer = getPlayer(playerId);
|
||||
if (mPlayer != null) {
|
||||
if (games.isEmpty() ) {
|
||||
if (startedGames == 0) {
|
||||
return players.remove(mPlayer);
|
||||
}
|
||||
mPlayer.setQuit(true);
|
||||
synchronized (this) {
|
||||
this.notifyAll();
|
||||
}
|
||||
checkIfMatchEnds();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue