don't save failed commands
This commit is contained in:
@@ -25,7 +25,7 @@ public class CommandExecutor {
|
|||||||
|
|
||||||
processResult(command, result);
|
processResult(command, result);
|
||||||
|
|
||||||
if (command instanceof PlayerCommand playerCommand)
|
if (command instanceof PlayerCommand playerCommand && result != CommandResult.NotAllowed)
|
||||||
this.game.addAction(playerCommand);
|
this.game.addAction(playerCommand);
|
||||||
|
|
||||||
command.postExec(game, outputSystem);
|
command.postExec(game, outputSystem);
|
||||||
|
|||||||
Reference in New Issue
Block a user