From b8055201df9dc1b2da50d6edbf4e442d22769d8d Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 25 May 2023 18:05:20 +0100 Subject: [PATCH] fix: do not reset the connectedCache every time Plot#getRegions is called (#4046) * fix: do not reset the connectedCache every time Plot#getRegions is called - Fixes IntellectualSites/FastAsyncWorldEdit#2188 * Remove unused import --- Core/src/main/java/com/plotsquared/core/plot/Plot.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/Plot.java b/Core/src/main/java/com/plotsquared/core/plot/Plot.java index 752171e49..90e339308 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/Plot.java +++ b/Core/src/main/java/com/plotsquared/core/plot/Plot.java @@ -20,7 +20,6 @@ package com.plotsquared.core.plot; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; -import com.google.common.collect.Sets; import com.google.inject.Inject; import com.plotsquared.core.PlotSquared; import com.plotsquared.core.command.Like; @@ -2418,7 +2417,6 @@ public class Plot { if (!this.isMerged()) { Location pos1 = this.getBottomAbs().withY(getArea().getMinBuildHeight()); Location pos2 = this.getTopAbs().withY(getArea().getMaxBuildHeight()); - this.connectedCache = Sets.newHashSet(this); CuboidRegion rg = new CuboidRegion(pos1.getBlockVector3(), pos2.getBlockVector3()); return Collections.singleton(rg); }