fix: correctly process chunks when using worldguard region blacklists (#2789)

- fixes #2399
This commit is contained in:
Jordan
2024-06-21 08:49:09 +02:00
committed by GitHub
parent 705df34c12
commit 4fe9c6bd74
3 changed files with 6 additions and 2 deletions

View File

@ -482,7 +482,7 @@ public interface Region extends Iterable<BlockVector3>, Cloneable, IBatchProcess
}
return set;
} else {
return null;
return set;
}
}

View File

@ -205,7 +205,7 @@ public class RegionIntersection extends AbstractRegion {
BlockVector3 regMin = region.getMinimumPoint();
BlockVector3 regMax = region.getMaximumPoint();
if (tx >= regMin.x() && bx <= regMax.x() && tz >= regMin.z() && bz <= regMax.z()) {
return region.processSet(chunk, get, set, true);
set = region.processSet(chunk, get, set, true);
}
}
return set; // default return set as no "blacklist" regions contained the chunk