Fix Optimal solver when MaxQuality == 0

This commit is contained in:
Asriel Camora
2024-12-02 22:29:18 -08:00
parent c7558afcd5
commit 8ce96052bf
+2 -2
View File
@@ -224,8 +224,8 @@ public sealed class Solver : IDisposable
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()
{