diff --git a/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilder.java b/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilder.java index 3a097cea5..0e52d5c2e 100644 --- a/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilder.java +++ b/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilder.java @@ -398,7 +398,7 @@ public class LodBuilder - if (world.isEmpty()) + if (!world.isEmpty()) { // server world sky light (always accurate) blockLight = world.getBlockLight(blockPos); diff --git a/src/main/java/com/seibel/lod/wrappers/LigthMapWrapper.java b/src/main/java/com/seibel/lod/wrappers/LigthMapWrapper.java index bb5eabf19..4647e3752 100644 --- a/src/main/java/com/seibel/lod/wrappers/LigthMapWrapper.java +++ b/src/main/java/com/seibel/lod/wrappers/LigthMapWrapper.java @@ -9,7 +9,7 @@ public class LigthMapWrapper public static void setLightMap(NativeImage lightMap) { - lightMap = null; + lightMap = lightMap; } public static int getLightValue(int skyLight, int blockLight) diff --git a/src/main/java/com/seibel/lod/wrappers/World/WorldLightWrapper.java b/src/main/java/com/seibel/lod/wrappers/World/WorldLightWrapper.java new file mode 100644 index 000000000..e3a4483f6 --- /dev/null +++ b/src/main/java/com/seibel/lod/wrappers/World/WorldLightWrapper.java @@ -0,0 +1,7 @@ +package com.seibel.lod.wrappers.World; + + +//We will use this class to get all the light information from the game like skylight, blocklight and light emission; +public class WorldLightWrapper +{ +}