Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit ff37bfb

Browse files
authored
Merge Development into main
Fix Gui Tweaks when disabled
2 parents e89c962 + c5c50cf commit ff37bfb

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

1.12.2/cloudclient/src/main/java/dev/cloudmc/mixins/GuiScreenMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public abstract class GuiScreenMixin extends Gui {
1818
)
1919
)
2020
public void drawWorldBackground(GuiScreen instance, int left, int top, int right, int bottom, int startColor, int endColor) {
21-
if (Cloud.INSTANCE.settingManager.getSettingByModAndName("Gui Tweaks", "Darken Background").isCheckToggled() &&
22-
Cloud.INSTANCE.modManager.getMod("Gui Tweaks").isToggled()) {
21+
if (Cloud.INSTANCE.settingManager.getSettingByModAndName("Gui Tweaks", "Darken Background").isCheckToggled() ||
22+
!Cloud.INSTANCE.modManager.getMod("Gui Tweaks").isToggled()) {
2323
this.drawGradientRect(left, top, right, bottom, startColor, endColor);
2424
}
2525
}

1.7.10/cloudclient/src/main/java/dev/cloudmc/mixins/GuiScreenMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ private static float getTooltipPosition(int tooltipY, int tooltipHeight, int scr
8989
)
9090
)
9191
public void drawWorldBackground(GuiScreen instance, int left, int top, int right, int bottom, int startColor, int endColor) {
92-
if (Cloud.INSTANCE.settingManager.getSettingByModAndName("Gui Tweaks", "Darken Background").isCheckToggled() &&
93-
Cloud.INSTANCE.modManager.getMod("Gui Tweaks").isToggled()) {
92+
if (Cloud.INSTANCE.settingManager.getSettingByModAndName("Gui Tweaks", "Darken Background").isCheckToggled() ||
93+
!Cloud.INSTANCE.modManager.getMod("Gui Tweaks").isToggled()) {
9494
this.drawGradientRect(left, top, right, bottom, startColor, endColor);
9595
}
9696
}

1.8.9/cloudclient/src/main/java/dev/cloudmc/mixins/GuiScreenMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public abstract class GuiScreenMixin extends Gui {
1818
)
1919
)
2020
public void drawWorldBackground(GuiScreen instance, int left, int top, int right, int bottom, int startColor, int endColor) {
21-
if (Cloud.INSTANCE.settingManager.getSettingByModAndName("Gui Tweaks", "Darken Background").isCheckToggled() &&
22-
Cloud.INSTANCE.modManager.getMod("Gui Tweaks").isToggled()) {
21+
if (Cloud.INSTANCE.settingManager.getSettingByModAndName("Gui Tweaks", "Darken Background").isCheckToggled() ||
22+
!Cloud.INSTANCE.modManager.getMod("Gui Tweaks").isToggled()) {
2323
this.drawGradientRect(left, top, right, bottom, startColor, endColor);
2424
}
2525
}

0 commit comments

Comments
 (0)