From c523feeb79a731bae364d71ad2d7b436a7446542 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 21 May 2023 11:06:53 +0100 Subject: [PATCH] fix: do not reset the connectedCache every time Plot#getRegions is called - Fixes IntellectualSites/FastAsyncWorldEdit#2188 --- Core/src/main/java/com/plotsquared/core/plot/Plot.java | 1 - 1 file changed, 1 deletion(-) 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..a70403188 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/Plot.java +++ b/Core/src/main/java/com/plotsquared/core/plot/Plot.java @@ -2418,7 +2418,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); }