mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +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 =
|
final List<Plot> plots =
|
||||||
autoQuery.getPlotArea().canClaim(autoQuery.getPlayer(), start, end);
|
autoQuery.getPlotArea().canClaim(autoQuery.getPlayer(), start, end);
|
||||||
|
autoQuery.getPlotArea().setMeta("lastPlot", start); // set entry point for next try
|
||||||
if (plots != null && !plots.isEmpty()) {
|
if (plots != null && !plots.isEmpty()) {
|
||||||
autoQuery.getPlotArea().setMeta("lastPlot", start);
|
|
||||||
for (final Plot plot : plots) {
|
for (final Plot plot : plots) {
|
||||||
if (plotCandidateCache.getIfPresent(plot.getId()) != null) {
|
if (plotCandidateCache.getIfPresent(plot.getId()) != null) {
|
||||||
continue outer;
|
continue outer;
|
||||||
|
Loading…
Reference in New Issue
Block a user