Experimental light system is a config now
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package com.seibel.lod.util;
|
||||
|
||||
import com.seibel.lod.config.LodConfig;
|
||||
import com.seibel.lod.enums.DistanceGenerationMode;
|
||||
import net.minecraft.client.renderer.texture.NativeImage;
|
||||
|
||||
import static com.seibel.lod.builders.bufferBuilding.LodBufferBuilder.skyLightPlayer;
|
||||
import static com.seibel.lod.builders.lodBuilding.LodBuilder.USE_EXPERIMENTAL_SKYLIGHT;
|
||||
|
||||
public class DataPointUtil
|
||||
{
|
||||
@@ -154,7 +154,7 @@ public class DataPointUtil
|
||||
|
||||
public static int getLightSkyAlt(long dataPoint)
|
||||
{
|
||||
if (USE_EXPERIMENTAL_SKYLIGHT && skyLightPlayer == 0 && ((dataPoint >>> FLAG_SHIFT) & FLAG_MASK) == 1)
|
||||
if (LodConfig.CLIENT.worldGenerator.useExperimentalSkyLight.get() && skyLightPlayer == 0 && ((dataPoint >>> FLAG_SHIFT) & FLAG_MASK) == 1)
|
||||
return 0;
|
||||
else
|
||||
return (int) ((dataPoint >>> SKY_LIGHT_SHIFT) & SKY_LIGHT_MASK);
|
||||
|
||||
Reference in New Issue
Block a user