Skip to content

Commit

Permalink
Revert "Add SkyBlock toggle for HUDs"
Browse files Browse the repository at this point in the history
This reverts commit ccf06e1.
  • Loading branch information
Wyvest committed Dec 23, 2023
1 parent a1843c4 commit 5a87b38
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion api/OneConfig.api
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,6 @@ public abstract class cc/polyfrost/oneconfig/hud/Hud {
public field showInChat Z
public field showInDebug Z
public field showInGuis Z
public field showInSkyBlock Z
public fun <init> ()V
public fun <init> (Z)V
public fun <init> (ZFF)V
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/cc/polyfrost/oneconfig/hud/Hud.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
import cc.polyfrost.oneconfig.gui.OneConfigGui;
import cc.polyfrost.oneconfig.libs.universal.UMatrixStack;
import cc.polyfrost.oneconfig.platform.Platform;
import cc.polyfrost.oneconfig.utils.hypixel.LocrawInfo;
import cc.polyfrost.oneconfig.utils.hypixel.LocrawUtil;

/**
* Represents a HUD element in OneConfig.
Expand Down Expand Up @@ -159,10 +157,6 @@ protected boolean shouldShow() {
if (!showInGuis && Platform.getGuiPlatform().getCurrentScreen() != null && !(Platform.getGuiPlatform().getCurrentScreen() instanceof OneConfigGui))
return false;
if (!showInChat && Platform.getGuiPlatform().isInChat()) return false;
if (!showInSkyBlock) {
LocrawInfo locrawInfo = LocrawUtil.INSTANCE.getLocrawInfo();
if (locrawInfo != null && locrawInfo.getGameType() == LocrawInfo.GameType.SKYBLOCK) return false;
}
return showInDebug || !Platform.getGuiPlatform().isInDebug();
}

Expand Down Expand Up @@ -221,9 +215,4 @@ public void setScale(float scale, boolean example) {
name = "Show in GUIs"
)
public boolean showInGuis = true;

@Switch(
name = "Show in SkyBlock"
)
public boolean showInSkyBlock = true;
}

0 comments on commit 5a87b38

Please sign in to comment.