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();