mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Refactor: Fix spelling of DENY_PERMISSION_TO_ROLLBACK_TURN (#9114)
This commit is contained in:
parent
4806626ba0
commit
4546623fb6
3 changed files with 3 additions and 3 deletions
|
@ -538,7 +538,7 @@ public class GameController implements GameCallback {
|
|||
}
|
||||
}
|
||||
break;
|
||||
case DENY_PERMISSON_TO_ROLLBACK_TURN: // one player has denied - so cancel the request
|
||||
case DENY_PERMISSION_TO_ROLLBACK_TURN: // one player has denied - so cancel the request
|
||||
{
|
||||
UUID playerId = getPlayerId(userId);
|
||||
if (playerId != null) {
|
||||
|
|
|
@ -149,7 +149,7 @@ public class GameSessionPlayer extends GameSessionWatcher {
|
|||
userRequestMessage.setRelatedUser(requestingUserId, requestingUser.get().getName());
|
||||
userRequestMessage.setGameId(game.getId());
|
||||
userRequestMessage.setButton1("Accept", PlayerAction.ADD_PERMISSION_TO_ROLLBACK_TURN);
|
||||
userRequestMessage.setButton2("Deny", PlayerAction.DENY_PERMISSON_TO_ROLLBACK_TURN);
|
||||
userRequestMessage.setButton2("Deny", PlayerAction.DENY_PERMISSION_TO_ROLLBACK_TURN);
|
||||
requestedUser.get().fireCallback(new ClientCallback(ClientCallbackMethod.USER_REQUEST_DIALOG, game.getId(), userRequestMessage));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ public enum PlayerAction {
|
|||
REQUEST_PERMISSION_TO_ROLLBACK_TURN,
|
||||
ADD_PERMISSION_TO_SEE_HAND_CARDS,
|
||||
ADD_PERMISSION_TO_ROLLBACK_TURN,
|
||||
DENY_PERMISSON_TO_ROLLBACK_TURN,
|
||||
DENY_PERMISSION_TO_ROLLBACK_TURN,
|
||||
PERMISSION_REQUESTS_ALLOWED_ON,
|
||||
PERMISSION_REQUESTS_ALLOWED_OFF,
|
||||
REQUEST_AUTO_ANSWER_ID_YES,
|
||||
|
|
Loading…
Reference in a new issue