diff options
author | makamys <makamys@outlook.com> | 2022-06-06 15:54:04 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-06 15:54:04 +0200 |
commit | 4b0e58d288dede21c466bba941abd2b2d9719364 (patch) | |
tree | 20589a80955c9841867c0cf9c60d28f874c598c2 /src/main/java/makamys/lodmod/mixin/MixinRenderGlobal_OptiFine.java | |
parent | 3409494a1cde6eb14acada901a337d7608b55c64 (diff) | |
download | Neodymium-4b0e58d288dede21c466bba941abd2b2d9719364.tar.gz Neodymium-4b0e58d288dede21c466bba941abd2b2d9719364.tar.bz2 Neodymium-4b0e58d288dede21c466bba941abd2b2d9719364.zip |
Improve keyboard handling
V: Toggle world rendering
F: Switch between vanilla renderer and my renderer
Only accept keyboard presses if no gui is active
Diffstat (limited to 'src/main/java/makamys/lodmod/mixin/MixinRenderGlobal_OptiFine.java')
-rw-r--r-- | src/main/java/makamys/lodmod/mixin/MixinRenderGlobal_OptiFine.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/makamys/lodmod/mixin/MixinRenderGlobal_OptiFine.java b/src/main/java/makamys/lodmod/mixin/MixinRenderGlobal_OptiFine.java index 3ce0c4c..521bf1a 100644 --- a/src/main/java/makamys/lodmod/mixin/MixinRenderGlobal_OptiFine.java +++ b/src/main/java/makamys/lodmod/mixin/MixinRenderGlobal_OptiFine.java @@ -17,7 +17,7 @@ abstract class MixinRenderGlobal_OptiFine { // for OptiFine's Fast Render option @Redirect(method = "renderSortedRenderersFast", at = @At(value = "INVOKE", target = "Lorg/lwjgl/opengl/GL11;glCallLists(Ljava/nio/IntBuffer;)V"), remap=false) private void redirectRenderAllRenderLists(IntBuffer buffer) { - if(!LODMod.isActive() || (LODMod.isActive() && LODMod.renderer.renderWorld)) { + if(LODMod.shouldRenderVanillaWorld()) { GL11.glCallLists(buffer); } } |