feat: Ensure stone layer chunks always render and remain visible
This commit is contained in:
@@ -13,8 +13,9 @@ function render() {
|
||||
|
||||
const key = getChunkKey(chunkX, chunkY);
|
||||
|
||||
// Skip rendering if the chunk hasn't changed and isn't marked as dirty
|
||||
if (!dirtyChunks.has(key) && !worldMoved) {
|
||||
// Always render stone layer (chunkY = 1) chunks, even if they're not dirty
|
||||
// For other chunks, only render if they're dirty or the world moved
|
||||
if (chunkY !== 1 && !dirtyChunks.has(key) && !worldMoved) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user