mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-03 07:43:04 +00:00
fixing my mistake in w
This commit is contained in:
parent
3c825a244c
commit
3657169222
|
|
@ -3255,7 +3255,7 @@ int LevelRenderer::getGlobalIndexForChunk(int x, int y, int z, int dimensionId)
|
|||
//int zz = ( z / CHUNK_XZSIZE ) + ( MAX_LEVEL_RENDER_SIZE[dimIdx] / 2 );
|
||||
int xx = ( Mth::intFloorDiv(x, CHUNK_XZSIZE)) + (MAX_LEVEL_RENDER_SIZE[dimIdx] / 2);
|
||||
int yy = Mth::intFloorDiv(y, CHUNK_SIZE);
|
||||
int zz = ( Mth::intFloorDiv(x, CHUNK_XZSIZE)) + (MAX_LEVEL_RENDER_SIZE[dimIdx] / 2);
|
||||
int zz = ( Mth::intFloorDiv(z, CHUNK_XZSIZE)) + (MAX_LEVEL_RENDER_SIZE[dimIdx] / 2);
|
||||
|
||||
if( ( xx < 0 ) || ( xx >= MAX_LEVEL_RENDER_SIZE[dimIdx] ) ) return -1;
|
||||
if( ( zz < 0 ) || ( zz >= MAX_LEVEL_RENDER_SIZE[dimIdx] ) ) return -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue