mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-26 19:18:53 +01:00
Properly convert chunk coordinates in ChunkHashTable.
This commit is contained in:
parent
38587a1c61
commit
5ddc4b9251
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user