Skip to content

Commit d9196e1

Browse files
committed
feat(server): add the move to the invalid move exception message
This leads to displaying the actual move which caused a disqualification in the replay XML, which is very useful for debugging.
1 parent 05b9f86 commit d9196e1

File tree

3 files changed

+79
-78
lines changed

3 files changed

+79
-78
lines changed

plugin/src/server/sc/plugin2020/Game.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected void onRoundBasedAction(Player fromPlayer, ProtocolMessage data) throw
6262
GameRuleLogic.performMove(this.gameState, move);
6363
next(this.gameState.getCurrentPlayer());
6464
} catch(InvalidMoveException e) {
65-
super.catchInvalidMove(e, fromPlayer);
65+
super.catchInvalidMove(e, fromPlayer, move);
6666
}
6767
}
6868

0 commit comments

Comments
 (0)