diff options
author | makamys <makamys@outlook.com> | 2021-05-19 11:39:50 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2021-05-19 11:39:50 +0200 |
commit | 8b13edf3ae85ad5cd2777bdc707502d232bcbc2b (patch) | |
tree | a13ea208ac327c0004f4b3e645ea520f04700979 /src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java | |
parent | b22772b8cfc786196579fc7a49b36356f4365ff5 (diff) | |
download | Neodymium-8b13edf3ae85ad5cd2777bdc707502d232bcbc2b.tar.gz Neodymium-8b13edf3ae85ad5cd2777bdc707502d232bcbc2b.tar.bz2 Neodymium-8b13edf3ae85ad5cd2777bdc707502d232bcbc2b.zip |
Disable chunk meshes because they're so memory leaky
Diffstat (limited to 'src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java')
-rw-r--r-- | src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } } |