forked from External/mage
catch spell and activated ability errors and rollback state - show error dialog on client
This commit is contained in:
parent
b90ac39de7
commit
48d7afa375
7 changed files with 114 additions and 68 deletions
|
|
@ -141,10 +141,7 @@ public class CallbackClientImpl implements CallbackClient {
|
|||
}
|
||||
}
|
||||
else if (callback.getMethod().equals("gameError")) {
|
||||
GamePanel panel = frame.getGame(callback.getObjectId());
|
||||
if (panel != null) {
|
||||
panel.modalMessage((String) callback.getData());
|
||||
}
|
||||
frame.showErrorDialog("Game Error", (String) callback.getData());
|
||||
}
|
||||
else if (callback.getMethod().equals("gameAsk")) {
|
||||
GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue