Fix regions in negative heights (#1792)

This commit is contained in:
stonar96 2021-07-02 02:11:06 +02:00 committed by wizjany
parent 37906c0fc4
commit bcac63dcaa
1 changed files with 1 additions and 1 deletions

View File

@ -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);