Archived
0

получение чанков из региона для отрицательных координат

This commit is contained in:
2019-01-28 22:36:41 +03:00
parent 871192a2e7
commit 89b80903e6
3 changed files with 52 additions and 22 deletions

View File

@@ -51,7 +51,7 @@ class Region implements Closeable {
Chunk getChunk(int x, int z) {
int offset;
try {
offset = getOffset(x, z);
offset = getOffset(x & 31, z & 31);
} catch (Exception e) {
return new EmptyChunk(x, z);
}