improve lightning
This commit is contained in:
@@ -154,6 +154,11 @@ export default class BlockRenderer {
|
|||||||
// Sum up the light levels
|
// Sum up the light levels
|
||||||
totalLightLevel += world.getTotalLightAt(x + offsetX, y + offsetY, z + offsetZ);
|
totalLightLevel += world.getTotalLightAt(x + offsetX, y + offsetY, z + offsetZ);
|
||||||
totalBlocks++;
|
totalBlocks++;
|
||||||
|
} else {
|
||||||
|
// Count the block if it's on the same level
|
||||||
|
if (offsetY === 0) {
|
||||||
|
totalBlocks++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user