Skip to content

Commit 6a6e8a6

Browse files
committed
Fix MCAWorld not using the Vector-Cache everywhere
1 parent 9fb57f3 commit 6a6e8a6

File tree

1 file changed

+2
-2
lines changed
  • BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca

1 file changed

+2
-2
lines changed

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/MCAWorld.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public BlockState getBlockState(Vector3i pos) {
9595

9696
@Override
9797
public MCAChunk getChunkAtBlock(int x, int y, int z) {
98-
return getChunk(new Vector2i(x >> 4, z >> 4));
98+
return getChunk(x >> 4, z >> 4);
9999
}
100100

101101
@Override
@@ -191,7 +191,7 @@ public void invalidateChunkCache() {
191191

192192
@Override
193193
public void invalidateChunkCache(int x, int z) {
194-
chunkCache.invalidate(new Vector2i(x, z));
194+
chunkCache.invalidate(vec2i(x, z));
195195
}
196196

197197
@Override

0 commit comments

Comments
 (0)