Properly convert chunk coordinates in ChunkHashTable.

This commit is contained in:
sk89q 2014-08-13 01:02:55 -07:00
parent 38587a1c61
commit 5ddc4b9251

View File

@ -271,8 +271,8 @@ public void run() {
List<ProtectedRegion> regions = new ArrayList<ProtectedRegion>(); List<ProtectedRegion> regions = new ArrayList<ProtectedRegion>();
ProtectedRegion chunkRegion = new ProtectedCuboidRegion( ProtectedRegion chunkRegion = new ProtectedCuboidRegion(
"_", "_",
position.toVector(0).toBlockVector(), position.multiply(16).toVector(0).toBlockVector(),
position.add(16, 16).toVector(Integer.MAX_VALUE).toBlockVector()); position.add(1, 1).multiply(16).toVector(Integer.MAX_VALUE).toBlockVector());
index.applyIntersecting(chunkRegion, new RegionCollectionConsumer(regions, false)); index.applyIntersecting(chunkRegion, new RegionCollectionConsumer(regions, false));
state.setRegions(Collections.unmodifiableList(regions)); state.setRegions(Collections.unmodifiableList(regions));