From 4f97b6d6e42202629cc85493dc937e2d7e1c4be3 Mon Sep 17 00:00:00 2001 From: BianXiao <137746769+mcbianxiao@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:09:01 +0800 Subject: [PATCH] Update PostLaunchChecks.java --- .../client/compatibility/checks/PostLaunchChecks.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/jellysquid/mods/sodium/client/compatibility/checks/PostLaunchChecks.java b/src/main/java/me/jellysquid/mods/sodium/client/compatibility/checks/PostLaunchChecks.java index 37170c53c6..db02a71470 100644 --- a/src/main/java/me/jellysquid/mods/sodium/client/compatibility/checks/PostLaunchChecks.java +++ b/src/main/java/me/jellysquid/mods/sodium/client/compatibility/checks/PostLaunchChecks.java @@ -1,5 +1,6 @@ package me.jellysquid.mods.sodium.client.compatibility.checks; +import me.jellysquid.mods.sodium.client.SodiumClientMod; import me.jellysquid.mods.sodium.client.gui.console.Console; import me.jellysquid.mods.sodium.client.gui.console.message.MessageLevel; import net.minecraft.text.Text; @@ -15,11 +16,9 @@ public class PostLaunchChecks { public static void onContextInitialized() { // FIXME: This can be determined earlier, but we can't access the GUI classes in pre-launch - if (isUsingPojavLauncher()) { - Console.instance().logMessage(MessageLevel.SEVERE, Text.translatable("sodium.console.pojav_launcher"), 30.0); - LOGGER.error("It appears that PojavLauncher is being used with an OpenGL compatibility layer. This will " + - "likely cause severe performance issues, graphical issues, and crashes when used with Sodium. This " + - "configuration is not supported -- you are on your own!"); + if ((!SodiumClientMod.options().pojav.noLongerWarnPojavLauncher) && isUsingPojavLauncher()) { + Console.instance().logMessage(MessageLevel.WARN, Text.translatable("sodium.console.pojav_launcher"), 30.0); + LOGGER.info("modified version of Sodium is running on PojavLauncher, if you run into any problems please report the problem to BianXiao and not to the Sodium team"); } }