fix: do not reset the connectedCache every time Plot#getRegions is called

- Fixes IntellectualSites/FastAsyncWorldEdit#2188
This commit is contained in:
dordsor21 2023-05-21 11:06:53 +01:00
parent 958c66b28f
commit c523feeb79
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -2418,7 +2418,6 @@ public class Plot {
if (!this.isMerged()) { if (!this.isMerged()) {
Location pos1 = this.getBottomAbs().withY(getArea().getMinBuildHeight()); Location pos1 = this.getBottomAbs().withY(getArea().getMinBuildHeight());
Location pos2 = this.getTopAbs().withY(getArea().getMaxBuildHeight()); Location pos2 = this.getTopAbs().withY(getArea().getMaxBuildHeight());
this.connectedCache = Sets.newHashSet(this);
CuboidRegion rg = new CuboidRegion(pos1.getBlockVector3(), pos2.getBlockVector3()); CuboidRegion rg = new CuboidRegion(pos1.getBlockVector3(), pos2.getBlockVector3());
return Collections.singleton(rg); return Collections.singleton(rg);
} }