From 4509954d1f17e31344a02bbb47c1a98d72d8e6b3 Mon Sep 17 00:00:00 2001 From: dima_dencep Date: Mon, 29 Apr 2024 03:29:53 +0700 Subject: [PATCH] Fix DH compat 3 Co-Authored-By: Bogdan <64613894+Asek3@users.noreply.github.com> --- .../net/irisshaders/iris/compat/dh/DHCompatInternal.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/irisshaders/iris/compat/dh/DHCompatInternal.java b/src/main/java/net/irisshaders/iris/compat/dh/DHCompatInternal.java index 619c1b1eed..6f23e344c4 100644 --- a/src/main/java/net/irisshaders/iris/compat/dh/DHCompatInternal.java +++ b/src/main/java/net/irisshaders/iris/compat/dh/DHCompatInternal.java @@ -129,6 +129,11 @@ public static boolean checkFrame() { guiScale = Minecraft.getInstance().options.guiScale().get(); } + // TODO fix early initialization + if (DhApi.Delayed.configs == null) { + return true; + } + if ((dhEnabled != DhApi.Delayed.configs.graphics().renderingEnabled().getValue() || guiScale != Minecraft.getInstance().options.guiScale().get()) && IrisApi.getInstance().isShaderPackInUse()) { guiScale = Minecraft.getInstance().options.guiScale().get();