From cb1270c7430c42df644ddbb4a6a96b5807bbedec Mon Sep 17 00:00:00 2001 From: makamys Date: Thu, 30 Jun 2022 17:12:15 +0200 Subject: Fix not getting enabled when shaders are turned off in-game --- src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/makamys/neodymium/mixin') diff --git a/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java b/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java index a059e8e..51cc52a 100644 --- a/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java +++ b/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java @@ -39,9 +39,7 @@ abstract class MixinRenderGlobal { @Inject(method = "loadRenderers", at = @At(value = "HEAD")) public void preLoadRenderers(CallbackInfo ci) { - if(Neodymium.isActive()) { - Neodymium.destroyRenderer(); - } + Neodymium.destroyRenderer(); } @Inject(method = "updateRenderers", at = @At(value = "RETURN")) -- cgit