Fix plot done success flag being false when complexity is higher than… (#4040)

Fix plot done success flag being false when complexity is higher than the threshold

Co-authored-by: MrJoshuaT <josh@jmt.me>
This commit is contained in:
MrJoshuaT 2023-05-13 21:23:11 +01:00 committed by GitHub
parent e914cb210e
commit c656190e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ public class Done extends SubCommand {
public void run(PlotAnalysis value) {
plot.removeRunning();
boolean result =
value.getComplexity(doneRequirements) <= doneRequirements.THRESHOLD;
value.getComplexity(doneRequirements) >= doneRequirements.THRESHOLD;
finish(plot, player, result);
}
});