mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
fixed issue 103 - this should catch most card logic errors, log the error on the server and trigger a message on the client
This commit is contained in:
parent
29865e79af
commit
82654f10d5
7 changed files with 44 additions and 5 deletions
|
|
@ -141,6 +141,12 @@ public class CallbackClientImpl implements CallbackClient {
|
|||
panel.hideGame();
|
||||
}
|
||||
}
|
||||
else if (callback.getMethod().equals("gameError")) {
|
||||
GamePanel panel = frame.getGame(callback.getObjectId());
|
||||
if (panel != null) {
|
||||
panel.modalMessage((String) callback.getData());
|
||||
}
|
||||
}
|
||||
else if (callback.getMethod().equals("gameAsk")) {
|
||||
GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
GamePanel panel = frame.getGame(callback.getObjectId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue