diff options
author | olim <bobq4582@gmail.com> | 2024-05-07 12:17:56 +0100 |
---|---|---|
committer | olim <bobq4582@gmail.com> | 2024-05-09 23:00:11 +0100 |
commit | 3195bbdd8101230615a4160c270e0c81f877ebe7 (patch) | |
tree | 4fd5a6ddf1ec6357eeea3e03a43cb2ba015d1c99 /src/main/java | |
parent | fabd4776ca61c542f3b22e2c2757538aee461f90 (diff) | |
download | Skyblocker-3195bbdd8101230615a4160c270e0c81f877ebe7.tar.gz Skyblocker-3195bbdd8101230615a4160c270e0c81f877ebe7.tar.bz2 Skyblocker-3195bbdd8101230615a4160c270e0c81f877ebe7.zip |
commisions update when in mineshaft
fix commissions not updating while in a mineshaft
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java index 9e299fb9..3eb8d477 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java @@ -24,17 +24,18 @@ public class CommissionLabels { /** * update the activeWaypoints when there is a change in commissions + * * @param newCommissions the new commissions to get the waypoints from - * @param completed if there is a commission completed + * @param completed if there is a commission completed */ protected static void update(List<String> newCommissions, boolean completed) { - String location = Utils.getIslandArea().substring(2); - if (!SkyblockerConfigManager.get().locations.dwarvenMines.commissionWaypoints.enabled || location.equals("Glacite Mineshafts")) { + if (!SkyblockerConfigManager.get().locations.dwarvenMines.commissionWaypoints.enabled) { return; } activeWaypoints.clear(); + String location = Utils.getIslandArea().substring(2); //find commission locations in glacite - if (location.equals("Dwarven Base Camp") || location.equals("Glacite Tunnels")|| location.equals("Glacite Lake")) { + if (location.equals("Dwarven Base Camp") || location.equals("Glacite Tunnels") || location.equals("Glacite Mineshafts") || location.equals("Glacite Lake")) { for (String commission : newCommissions) { for (Map.Entry<String, MiningLocationLabel.glaciteCategory> glaciteLocation : GLACITE_LOCATIONS.entrySet()) { if (commission.contains(glaciteLocation.getKey())) { @@ -71,6 +72,7 @@ public class CommissionLabels { /** * render all the active waypoints + * * @param context render context */ private static void render(WorldRenderContext context) { |