Fix Optimal solver when MaxQuality == 0
This commit is contained in:
+2
-2
@@ -224,8 +224,8 @@ public sealed class Solver : IDisposable
|
|||||||
Token.ThrowIfCancellationRequested();
|
Token.ThrowIfCancellationRequested();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var state = solution != null ? (SimulationState?)ExecuteActions(solution) : null;
|
||||||
if (solution == null || ExecuteActions(solution).HQPercent != 100)
|
if (solution == null || state?.Quality != state?.Input.Recipe.MaxQuality)
|
||||||
{
|
{
|
||||||
Raphael.SolverConfig config = new()
|
Raphael.SolverConfig config = new()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user