From a2b8e4493ffa357d33bb221e2c8cec987a401d49 Mon Sep 17 00:00:00 2001 From: SirYwell Date: Tue, 18 May 2021 22:29:41 +0200 Subject: [PATCH] Fix infinite loop on multi auto (fixes #3022) --- .../java/com/plotsquared/core/services/plots/AutoService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/services/plots/AutoService.java b/Core/src/main/java/com/plotsquared/core/services/plots/AutoService.java index 08880a6d5..85958ebfb 100644 --- a/Core/src/main/java/com/plotsquared/core/services/plots/AutoService.java +++ b/Core/src/main/java/com/plotsquared/core/services/plots/AutoService.java @@ -175,8 +175,8 @@ public interface AutoService extends Service> ); final List plots = autoQuery.getPlotArea().canClaim(autoQuery.getPlayer(), start, end); + autoQuery.getPlotArea().setMeta("lastPlot", start); // set entry point for next try if (plots != null && !plots.isEmpty()) { - autoQuery.getPlotArea().setMeta("lastPlot", start); for (final Plot plot : plots) { if (plotCandidateCache.getIfPresent(plot.getId()) != null) { continue outer;