From 8b13edf3ae85ad5cd2777bdc707502d232bcbc2b Mon Sep 17 00:00:00 2001 From: makamys Date: Wed, 19 May 2021 11:39:50 +0200 Subject: Disable chunk meshes because they're so memory leaky --- src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java') diff --git a/src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java b/src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java index 3dc2187..112c97c 100644 --- a/src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java +++ b/src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java @@ -91,7 +91,7 @@ abstract class MixinWorldRenderer implements IWorldRenderer { @Inject(method = "postRenderBlocks", at = @At(value = "HEAD")) private void prePostRenderBlocks(int pass, EntityLivingBase entity, CallbackInfo ci) { - if(LODMod.isActive()) { + if(LODMod.isActive() && !LODMod.renderer.disableChunkMeshes) { chunkMeshes.add(((ITessellator)Tessellator.instance).toChunkMesh(pass)); } } -- cgit