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.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/makamys/lodmod/LODMod.java b/src/main/java/makamys/lodmod/LODMod.java
index 6fb5b8d..dd25e6b 100644
--- a/src/main/java/makamys/lodmod/LODMod.java
+++ b/src/main/java/makamys/lodmod/LODMod.java
@@ -71,8 +71,10 @@ public class LODMod
@SubscribeEvent
public void onWorldUnload(TickEvent.ServerTickEvent event) {
- if(isActive()) {
- renderer.serverTick();
+ if(event.phase == TickEvent.Phase.START) {
+ if(isActive()) {
+ renderer.serverTick();
+ }
}
}