don't save failed commands

This commit is contained in:
2025-04-06 11:40:24 +02:00
parent 65362677a5
commit a2224cf618

View File

@@ -25,7 +25,7 @@ public class CommandExecutor {
processResult(command, result);
if (command instanceof PlayerCommand playerCommand)
if (command instanceof PlayerCommand playerCommand && result != CommandResult.NotAllowed)
this.game.addAction(playerCommand);
command.postExec(game, outputSystem);