From c656190e141eeb8c344229eab63bdcefb0776553 Mon Sep 17 00:00:00 2001 From: MrJoshuaT <1721365+MrJoshuaT@users.noreply.github.com> Date: Sat, 13 May 2023 21:23:11 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20plot=20done=20success=20flag=20being=20fa?= =?UTF-8?q?lse=20when=20complexity=20is=20higher=20than=E2=80=A6=20(#4040)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix plot done success flag being false when complexity is higher than the threshold Co-authored-by: MrJoshuaT --- Core/src/main/java/com/plotsquared/core/command/Done.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Done.java b/Core/src/main/java/com/plotsquared/core/command/Done.java index 0c5a07412..565890b62 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Done.java +++ b/Core/src/main/java/com/plotsquared/core/command/Done.java @@ -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); } });