diff --git a/Solver/Solver.cs b/Solver/Solver.cs index 18d5ec8..9e5b437 100644 --- a/Solver/Solver.cs +++ b/Solver/Solver.cs @@ -224,8 +224,8 @@ void OnProgress(nuint p) Token.ThrowIfCancellationRequested(); } - - if (solution == null || ExecuteActions(solution).HQPercent != 100) + var state = solution != null ? (SimulationState?)ExecuteActions(solution) : null; + if (solution == null || state?.Quality != state?.Input.Recipe.MaxQuality) { Raphael.SolverConfig config = new() {