Fix MCAWorld not using the Vector-Cache everywhere

This commit is contained in:
Blue (Lukas Rieger) 2021-09-14 10:29:52 +02:00
parent 9fb57f36a2
commit 6a6e8a64bc
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800

View File

@ -95,7 +95,7 @@ public BlockState getBlockState(Vector3i pos) {
@Override
public MCAChunk getChunkAtBlock(int x, int y, int z) {
return getChunk(new Vector2i(x >> 4, z >> 4));
return getChunk(x >> 4, z >> 4);
}
@Override
@ -191,7 +191,7 @@ public void invalidateChunkCache() {
@Override
public void invalidateChunkCache(int x, int z) {
chunkCache.invalidate(new Vector2i(x, z));
chunkCache.invalidate(vec2i(x, z));
}
@Override