From 3ffb2c5ee2073d9a61daf4fed7103e05e02650a5 Mon Sep 17 00:00:00 2001 From: BianXiao <137746769+mcbianxiao@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:39:39 +0800 Subject: [PATCH] Update pojavlauncherWarnScreen.java --- .../sodium/client/gui/pojavlauncherWarnScreen.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/me/jellysquid/mods/sodium/client/gui/pojavlauncherWarnScreen.java b/src/main/java/me/jellysquid/mods/sodium/client/gui/pojavlauncherWarnScreen.java index 73e3a9d30a..4a9a27de24 100644 --- a/src/main/java/me/jellysquid/mods/sodium/client/gui/pojavlauncherWarnScreen.java +++ b/src/main/java/me/jellysquid/mods/sodium/client/gui/pojavlauncherWarnScreen.java @@ -17,13 +17,6 @@ import net.minecraft.client.gui.widget.CheckboxWidget; import net.minecraft.text.Text; import net.minecraft.util.Formatting; -import net.minecraft.client.gui.screen.Screen; -import net.minecraft.client.gui.widget.ButtonWidget; -import net.minecraft.client.gui.widget.CheckboxWidget; -import net.minecraft.text.LiteralText; -import net.minecraft.text.MutableText; -import net.minecraft.text.Text; -import net.minecraft.util.Formatting; public class pojavlauncherWarnScreen extends Screen { @@ -48,8 +41,8 @@ protected void init() { this.addDrawableChild(new ButtonWidget(this.width / 2 - 155 + 160, 130 + i, 150, 20, new LiteralText("Modrinth"), buttonWidget -> Util.getOperatingSystem().open("https://modrinth.com/mod/reeses-sodium-options"))); this.addDrawableChild(new ButtonWidget(this.width / 2 - 155, 100 + i, 150, 20, ScreenTexts.PROCEED, buttonWidget -> { if (this.checkbox.isChecked()) { - SodiumExtraClientMod.options().notificationSettings.hideRSORecommendation = true; - SodiumExtraClientMod.options().writeChanges(); + SodiumClientMod.options().notificationSettings.hideRSORecommendation = true; + SodiumClientMod.options().writeChanges(); } this.client.setScreen(this.prevScreen); }));