mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-21 15:41:24 +01:00
Fix regions in negative heights (#1792)
This commit is contained in:
parent
37906c0fc4
commit
bcac63dcaa
@ -316,7 +316,7 @@ public void run() {
|
|||||||
List<ProtectedRegion> regions = new ArrayList<>();
|
List<ProtectedRegion> regions = new ArrayList<>();
|
||||||
ProtectedRegion chunkRegion = new ProtectedCuboidRegion(
|
ProtectedRegion chunkRegion = new ProtectedCuboidRegion(
|
||||||
"_",
|
"_",
|
||||||
position.multiply(16).toBlockVector3(0),
|
position.multiply(16).toBlockVector3(Integer.MIN_VALUE),
|
||||||
position.add(1, 1).multiply(16).toBlockVector3(Integer.MAX_VALUE));
|
position.add(1, 1).multiply(16).toBlockVector3(Integer.MAX_VALUE));
|
||||||
index.applyIntersecting(chunkRegion, new RegionCollectionConsumer(regions, false));
|
index.applyIntersecting(chunkRegion, new RegionCollectionConsumer(regions, false));
|
||||||
Collections.sort(regions);
|
Collections.sort(regions);
|
||||||
|
Loading…
Reference in New Issue
Block a user