From 7b8bb6d5225895925712ebb76130718e7357b055 Mon Sep 17 00:00:00 2001 From: olim Date: Fri, 2 Feb 2024 13:15:16 +0000 Subject: fixed displaying everywere fixed bug introduced by Refactor (setting commission list to a new array only if updating its values in the update function). by adding check for is in Dwarven mines or crystal hollow on the render conditions. instead of if the list is empty or not --- src/main/java/de/hysky/skyblocker/utils/Utils.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/de/hysky/skyblocker/utils') diff --git a/src/main/java/de/hysky/skyblocker/utils/Utils.java b/src/main/java/de/hysky/skyblocker/utils/Utils.java index 066bc19b..b0c5bf45 100644 --- a/src/main/java/de/hysky/skyblocker/utils/Utils.java +++ b/src/main/java/de/hysky/skyblocker/utils/Utils.java @@ -37,6 +37,7 @@ public class Utils { private static final String ALTERNATE_HYPIXEL_ADDRESS = System.getProperty("skyblocker.alternateHypixelAddress", ""); private static final String DUNGEONS_LOCATION = "dungeon"; private static final String CRYSTAL_HOLLOWS_LOCATION = "crystal_hollows"; + private static final String DWARVEN_MINES_LOCATION = "mining_3"; private static final String PROFILE_PREFIX = "Profile: "; private static boolean isOnHypixel = false; @@ -92,6 +93,10 @@ public class Utils { return getLocationRaw().equals(CRYSTAL_HOLLOWS_LOCATION) || FabricLoader.getInstance().isDevelopmentEnvironment(); } + public static boolean isInDwarvenMines() { + return getLocationRaw().equals(DWARVEN_MINES_LOCATION) || FabricLoader.getInstance().isDevelopmentEnvironment(); + } + public static boolean isInTheRift() { return getLocationRaw().equals(TheRift.LOCATION); } -- cgit