mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Fix neighbour chunk update
+1 for x axis is missed in getChunk()
This commit is contained in:
parent
61b73bfabd
commit
f6d5735f14
1 changed files with 1 additions and 1 deletions
|
|
@ -422,7 +422,7 @@ void Chunks::set(
|
|||
if (lz == 0 && (chunk = getChunk(cx, cz - 1))) {
|
||||
chunk->flags.modified = true;
|
||||
}
|
||||
if (lx == CHUNK_W - 1 && (chunk = getChunk(cx, cz))) {
|
||||
if (lx == CHUNK_W - 1 && (chunk = getChunk(cx + 1, cz))) {
|
||||
chunk->flags.modified = true;
|
||||
}
|
||||
if (lz == CHUNK_D - 1 && (chunk = getChunk(cx, cz + 1))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue