Skip to content

Commit

Permalink
Update pojavlauncherWarnScreen.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbianxiao authored Sep 17, 2024
1 parent 1421515 commit 3ffb2c5
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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);
}));
Expand Down

0 comments on commit 3ffb2c5

Please sign in to comment.