diff options
author | FalsePattern <me@falsepattern.com> | 2024-01-08 00:08:25 +0100 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2024-01-08 22:49:40 +0100 |
commit | f763808849a028ff5115d1b3a3b2471ee2913bd9 (patch) | |
tree | 5c4bab8636c142de2467839be60d3121c7b3384d | |
parent | e0252b3d4b790503038c2433f02a7c6c1f0f8b81 (diff) | |
download | Neodymium-f763808849a028ff5115d1b3a3b2471ee2913bd9.tar.gz Neodymium-f763808849a028ff5115d1b3a3b2471ee2913bd9.tar.bz2 Neodymium-f763808849a028ff5115d1b3a3b2471ee2913bd9.zip |
fix frustum check boolean logic
-rw-r--r-- | src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java b/src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java index 16c4ea6..be3cadd 100644 --- a/src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java +++ b/src/main/java/makamys/neodymium/mixin/MixinWorldRenderer.java @@ -192,10 +192,6 @@ abstract class MixinWorldRenderer implements IWorldRenderer { @Override public boolean isDrawn() { - if (!(skipRenderPass[0] && skipRenderPass[1])) - return true; - if (!Compat.isOptiFineShadersEnabled()) - return isInFrustum; - return true; + return (isInFrustum || Compat.isOptiFineShadersEnabled()) && !(skipRenderPass[0] && skipRenderPass[1]); } } |