diff --git a/src/main/java/net/coderbot/iris/mixin/MixinTitleScreen.java b/src/main/java/net/coderbot/iris/mixin/MixinTitleScreen.java index 9de5c5d25a..980aa4e29d 100644 --- a/src/main/java/net/coderbot/iris/mixin/MixinTitleScreen.java +++ b/src/main/java/net/coderbot/iris/mixin/MixinTitleScreen.java @@ -34,6 +34,8 @@ protected MixinTitleScreen(Component arg) { @Inject(method = "init", at = @At("RETURN")) public void iris$showSodiumIncompatScreen(CallbackInfo ci) { + if (iris$hasFirstInit) return; + String reason; if (!Iris.isSodiumInstalled() && !FabricLoader.getInstance().isDevelopmentEnvironment()) { @@ -44,6 +46,12 @@ protected MixinTitleScreen(Component arg) { Minecraft.getInstance().setScreen(new ConfirmScreen( bool -> { if (bool) { + if (!iris$hasFirstInit) { + Iris.onLoadingComplete(); + } + + iris$hasFirstInit = true; + Minecraft.getInstance().setScreen(this); } else { Minecraft.getInstance().stop();