aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2021-05-19 11:44:51 +0200
committermakamys <makamys@outlook.com>2021-05-19 11:44:51 +0200
commit61cb22ab61abdd1bfd216d10084dcd19b80ba536 (patch)
tree1a2f485af65f7ac8f9ae409e15cbf884182640c1 /src
parent3036e7146ed24d7e89e0065b9c9be1319c26f6f0 (diff)
downloadNeodymium-61cb22ab61abdd1bfd216d10084dcd19b80ba536.tar.gz
Neodymium-61cb22ab61abdd1bfd216d10084dcd19b80ba536.tar.bz2
Neodymium-61cb22ab61abdd1bfd216d10084dcd19b80ba536.zip
Only tick once per tick
Whoopsie
Diffstat (limited to 'src')
-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();
+ }
}
}