Skip to content

Commit

Permalink
Fix DH compat 3
Browse files Browse the repository at this point in the history
Co-Authored-By: Bogdan <64613894+Asek3@users.noreply.github.com>
  • Loading branch information
dima-dencep and Asek3 committed Apr 28, 2024
1 parent b324591 commit 4509954
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4509954

Please sign in to comment.