Skip to content

Commit

Permalink
Merge branch 1.20.x/dev into 1.20.x/stable
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed Feb 2, 2024
2 parents 0b13142 + aeb15ea commit 4b26df6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ org.gradle.jvmargs=-Xmx1G
# Mod Properties
version_type=release
revision=1
mod_version=1.7.1
mod_version=1.7.2
maven_group=me.flashyreese.mods
archives_base_name=reeses_sodium_options

# Dependency
sodium_version=mc1.20.3-0.5.6
iris_version=1.5.2+1.19.4
sodium_version=mc1.20.4-0.5.8
iris_version=1.20.4-1.6.15

#Fabric api
fabric_version=0.95.1+1.20.4
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private void checkPromptTimers() {
var options = SodiumClientMod.options();

// If the user has disabled the nags forcefully (by config), or has already seen the prompt, don't show it again.
if (options.notifications.forceDisableDonationPrompts || options.notifications.hasSeenDonationPrompt) {
if (options.notifications.hasSeenDonationPrompt) {
return;
}

Expand Down Expand Up @@ -166,13 +166,13 @@ protected BasicFrame.Builder parentFrameBuilder() {
this.donateButton = new FlatButtonWidget(donateButtonDim, donationText, this::openDonationPage);
this.hideDonateButton = new FlatButtonWidget(hideDonateButtonDim, Text.literal("x"), this::hideDonationButton);

if (SodiumClientMod.options().notifications.hasClearedDonationButton || SodiumClientMod.options().notifications.forceDisableDonationPrompts) {
if (SodiumClientMod.options().notifications.hasClearedDonationButton) {
this.setDonationButtonVisibility(false);
}


Dim2i searchTextFieldDim;
if (SodiumClientMod.options().notifications.hasClearedDonationButton || SodiumClientMod.options().notifications.forceDisableDonationPrompts) {
if (SodiumClientMod.options().notifications.hasClearedDonationButton) {
searchTextFieldDim = new Dim2i(tabFrameDim.x(), tabFrameDim.y() - 26, tabFrameDim.width(), 20);
} else {
searchTextFieldDim = new Dim2i(tabFrameDim.x(), tabFrameDim.y() - 26, tabFrameDim.width() - (tabFrameDim.getLimitX() - donateButtonDim.x()) - 2, 20);
Expand All @@ -185,7 +185,7 @@ protected BasicFrame.Builder parentFrameBuilder() {
//int size = this.client.textRenderer.getWidth(Text.translatable(IrisApi.getInstance().getMainScreenLanguageKey()));
int size = this.client.textRenderer.getWidth(Text.translatable(IrisCompat.getIrisShaderPacksScreenLanguageKey()));
Dim2i shaderPackButtonDim;
if (!(SodiumClientMod.options().notifications.hasClearedDonationButton || SodiumClientMod.options().notifications.forceDisableDonationPrompts)) {
if (!(SodiumClientMod.options().notifications.hasClearedDonationButton)) {
shaderPackButtonDim = new Dim2i(donateButtonDim.x() - 12 - size, tabFrameDim.y() - 26, 10 + size, 20);
} else {
shaderPackButtonDim = new Dim2i(tabFrameDim.getLimitX() - size - 10, tabFrameDim.y() - 26, 10 + size, 20);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"breaks": {
"iris": "<1.1.4",
"sodium-extra": "<0.5.3",
"sodium": "<0.5.6"
"sodium": "<0.5.8"
},
"recommends": {
"sodium-extra": ">=0.4.2"
Expand Down

0 comments on commit 4b26df6

Please sign in to comment.