forked from External/mage
Fixed a bug of handling of tournament sub tables if a user left. Some chnages to match view.
This commit is contained in:
parent
8dbd996646
commit
3699b7ca3d
11 changed files with 57 additions and 32 deletions
|
|
@ -48,6 +48,7 @@ import java.util.Map.Entry;
|
|||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.ScheduledFuture;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import mage.game.Table;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -161,11 +162,11 @@ public class GameSession extends GameWatcher {
|
|||
}
|
||||
}
|
||||
|
||||
public void endGameInfo(Match match) {
|
||||
public void endGameInfo(Table table) {
|
||||
if (!killed) {
|
||||
User user = UserManager.getInstance().getUser(userId);
|
||||
if (user != null) {
|
||||
user.fireCallback(new ClientCallback("endGameInfo", game.getId(), getGameEndView(playerId, match)));
|
||||
user.fireCallback(new ClientCallback("endGameInfo", game.getId(), getGameEndView(playerId, table)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue