minor dontMergeColoredColumns reformat and comment
This commit is contained in:
+9
-7
@@ -196,13 +196,15 @@ public class LodDataBuilder
|
||||
// Save the biome/block change if different from previous
|
||||
if (!newBiome.equals(biome) || !newBlockState.equals(blockState) || forceSingleBlock)
|
||||
{
|
||||
forceSingleBlock = false;
|
||||
// Check if the previous block potentially colors this block
|
||||
// If so, we must make this block a single entry, aka add the next block even if it is the same
|
||||
if (!blockState.isAir() && !blockState.isSolid() && !blockState.isLiquid() && blockState.getOpacity() != LodUtil.BLOCK_FULLY_OPAQUE)
|
||||
{
|
||||
forceSingleBlock = true;
|
||||
}
|
||||
// if the previous block potentially colors this block
|
||||
// make this block a single entry, aka add the next block even if it is the same
|
||||
// this is done to allow fire, snow, flowers, etc. to properly color the top of columns vs the whole column
|
||||
forceSingleBlock =
|
||||
!blockState.isAir()
|
||||
&& !blockState.isSolid()
|
||||
&& !blockState.isLiquid()
|
||||
&& blockState.getOpacity() != LodUtil.BLOCK_FULLY_OPAQUE;
|
||||
|
||||
longs.add(FullDataPointUtil.encode(mappedId, lastY - y, y + 1 - inclusiveMinBuildHeight, blockLight, skyLight));
|
||||
biome = newBiome;
|
||||
blockState = newBlockState;
|
||||
|
||||
Reference in New Issue
Block a user