Fix regions in negative heights (#1792)
This commit is contained in:
parent
37906c0fc4
commit
bcac63dcaa
|
@ -316,7 +316,7 @@ public class ChunkHashTable implements ConcurrentRegionIndex {
|
|||
List<ProtectedRegion> regions = new ArrayList<>();
|
||||
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));
|
||||
index.applyIntersecting(chunkRegion, new RegionCollectionConsumer(regions, false));
|
||||
Collections.sort(regions);
|
||||
|
|
Loading…
Reference in New Issue