since new method of getting skyLight is objectively better, I've commented out old method and 'if' used to switch between those methods

This commit is contained in:
cola98765
2021-10-14 23:36:27 +02:00
parent af123a8c80
commit 4da1fcc118
@@ -92,7 +92,7 @@ public class LodBuilder
*/
public int defaultDimensionWidthInRegions = 0;
public static final boolean useExperimentalLighting = true;
//public static final boolean useExperimentalLighting = true;
@@ -437,8 +437,8 @@ public class LodBuilder
skyLight = DEFAULT_MAX_LIGHT;
else
{
if (useExperimentalLighting)
{
//if (useExperimentalLighting)
//{
skyLight = world.getBrightness(LightType.SKY, blockPos);
if (skyLight <= 0 || skyLight >= 15)
{
@@ -449,7 +449,7 @@ public class LodBuilder
else
skyLight = 0;
}
}
/*}
else
{
if (chunk.isLightCorrect())
@@ -463,7 +463,7 @@ public class LodBuilder
else
skyLight = 0;
}
}
}*/
}
blockLight = world.getBrightness(LightType.BLOCK, blockPos);