mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 12:25:46 +01:00
Fix infinite loop on multi auto (fixes #3022)
This commit is contained in:
parent
7c4a85325c
commit
a2b8e4493f
@ -175,8 +175,8 @@ public interface AutoService extends Service<AutoService.AutoQuery, List<Plot>>
|
||||
);
|
||||
final List<Plot> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user