diff options
author | makamys <makamys@outlook.com> | 2022-06-09 13:36:39 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-09 13:37:12 +0200 |
commit | 525b2b2dbf2cfbc9d7a863c00b811d779bd06860 (patch) | |
tree | 8bd3cf92a4beb86abeda6c220ecde1aa1bef5f52 /src/main/java/makamys/neodymium/mixin | |
parent | 6b8f52c5dee4393db85e3d4e10c23502cc9ded84 (diff) | |
download | Neodymium-525b2b2dbf2cfbc9d7a863c00b811d779bd06860.tar.gz Neodymium-525b2b2dbf2cfbc9d7a863c00b811d779bd06860.tar.bz2 Neodymium-525b2b2dbf2cfbc9d7a863c00b811d779bd06860.zip |
Move configs to Config class
Diffstat (limited to 'src/main/java/makamys/neodymium/mixin')
-rw-r--r-- | src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java b/src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java index 90b190d..86702fe 100644 --- a/src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java +++ b/src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java @@ -11,6 +11,7 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import makamys.neodymium.Config; import makamys.neodymium.Neodymium; import makamys.neodymium.ducks.IWorldRenderer; import makamys.neodymium.renderer.ChunkMesh; @@ -97,7 +98,7 @@ abstract class MixinWorldRenderer implements IWorldRenderer { @Inject(method = "postRenderBlocks", at = @At(value = "HEAD")) private void prePostRenderBlocks(int pass, EntityLivingBase entity, CallbackInfo ci) { - if(Neodymium.isActive() && !Neodymium.disableChunkMeshes) { + if(Neodymium.isActive() && !Config.disableChunkMeshes) { if(chunkMeshes != null) { chunkMeshes.add(ChunkMesh.fromTessellator(pass, WorldRenderer.class.cast(this), Tessellator.instance)); } |