This commit is contained in:
TomTheFurry
2023-06-15 16:46:23 +08:00
parent 9f81194d21
commit 0631f7adf7
@@ -28,16 +28,10 @@ public class LodDataBuilder {
byte light = (byte) ((chunkWrapper.getBlockLight(x,lastY+1,z) << 4) + chunkWrapper.getSkyLight(x,lastY+1,z));
int y=chunkWrapper.getLightBlockingHeightMapValue(x, z);
int top = y;
for (; y>=chunkWrapper.getMinBuildHeight(); y--) {
IBiomeWrapper newBiome = chunkWrapper.getBiome(x, y, z);
IBlockStateWrapper newBlockState = chunkWrapper.getBlockState(x, y, z);
if (top == 30 && y == 29 && chunkWrapper.getSkyLight(x,y+1,z) == 0)
{
int a = 0;
}
byte newLight = (byte) ((chunkWrapper.getBlockLight(x,y+1,z) << 4) + chunkWrapper.getSkyLight(x,y+1,z));
if (!newBiome.equals(biome) || !newBlockState.equals(blockState)) {