diff options
Diffstat (limited to 'src/main/java/makamys/lodmod')
-rw-r--r-- | src/main/java/makamys/lodmod/mixin/MixinRenderGlobal.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/makamys/lodmod/mixin/MixinRenderGlobal.java b/src/main/java/makamys/lodmod/mixin/MixinRenderGlobal.java index 0f87216..a2acecf 100644 --- a/src/main/java/makamys/lodmod/mixin/MixinRenderGlobal.java +++ b/src/main/java/makamys/lodmod/mixin/MixinRenderGlobal.java @@ -21,8 +21,10 @@ abstract class MixinRenderGlobal { @Redirect(method = "renderSortedRenderers", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/WorldRenderer;getGLCallListForPass(I)I")) public int redirectCallList(WorldRenderer thiz, int arg) { int numba = thiz.getGLCallListForPass(arg); - if(numba != -1) { - LODMod.renderer.onWorldRendererFrustumChange(thiz, true); + if(LODMod.isActive()) { + if(numba != -1) { + LODMod.renderer.onWorldRendererFrustumChange(thiz, true); + } } return numba; } |