aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/lodmod/LODMod.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/lodmod/LODMod.java')
-rw-r--r--src/main/java/makamys/lodmod/LODMod.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/makamys/lodmod/LODMod.java b/src/main/java/makamys/lodmod/LODMod.java
index 2c9c160..1ca08f5 100644
--- a/src/main/java/makamys/lodmod/LODMod.java
+++ b/src/main/java/makamys/lodmod/LODMod.java
@@ -10,6 +10,7 @@ import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.Configuration;
+import net.minecraftforge.event.world.ChunkEvent;
import net.minecraftforge.event.world.WorldEvent;
import java.io.File;
@@ -91,6 +92,15 @@ public class LODMod
}
}
+ @SubscribeEvent
+ public void onChunkLoad(ChunkEvent.Load event) {
+ if(!event.world.isRemote) return;
+
+ if(isActive()) {
+ renderer.onChunkLoad(event);
+ }
+ }
+
public static boolean isActive() {
return renderer != null && renderer.hasInited;
}