aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java
diff options
context:
space:
mode:
authorolim <bobq4582@gmail.com>2024-07-10 12:30:59 +0100
committerolim <bobq4582@gmail.com>2024-07-15 12:38:47 +0100
commit5c20347f8a2a0bbad3f0c04264e52cb02b3057a7 (patch)
treefcd94a9822ab3784d166af555930f509e38a9ff9 /src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java
parent1bf1e29ff8d65c2930997fe9a7b81be611ddbf7f (diff)
downloadSkyblocker-5c20347f8a2a0bbad3f0c04264e52cb02b3057a7.tar.gz
Skyblocker-5c20347f8a2a0bbad3f0c04264e52cb02b3057a7.tar.bz2
Skyblocker-5c20347f8a2a0bbad3f0c04264e52cb02b3057a7.zip
implement requested changes
fix formatting of code in place to be correct
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java
index 84cd4803..7e7386f0 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java
@@ -98,6 +98,9 @@ public class WishingCompassSolver {
* @param b overlay
*/
private static void failMessageListener(Text text, boolean b) {
+ if (!Utils.isInCrystalHollows()){
+ return;
+ }
if (Formatting.strip(text.getString()).equals("The Wishing Compass can't seem to locate anything!")) {
currentState = SolverStates.NOT_STARTED;
}
@@ -303,7 +306,7 @@ public class WishingCompassSolver {
}
ItemStack stack = CLIENT.player.getStackInHand(hand);
//make sure the user is in the crystal hollows and holding the wishing compass
- if (!Utils.isInCrystalHollows() || !SkyblockerConfigManager.get().mining.crystalsWaypoints.WishingCompassSolver || !Objects.equals(stack.getSkyblockId(), "WISHING_COMPASS")) {
+ if (!Utils.isInCrystalHollows() || !SkyblockerConfigManager.get().mining.crystalsWaypoints.wishingCompassSolver || !Objects.equals(stack.getSkyblockId(), "WISHING_COMPASS")) {
return ActionResult.PASS;
}
if (useCompass()) {
@@ -319,7 +322,7 @@ public class WishingCompassSolver {
}
ItemStack stack = CLIENT.player.getStackInHand(hand);
//make sure the user is in the crystal hollows and holding the wishing compass
- if (!Utils.isInCrystalHollows() || !SkyblockerConfigManager.get().mining.crystalsWaypoints.WishingCompassSolver || !Objects.equals(stack.getSkyblockId(), "WISHING_COMPASS")) {
+ if (!Utils.isInCrystalHollows() || !SkyblockerConfigManager.get().mining.crystalsWaypoints.wishingCompassSolver || !Objects.equals(stack.getSkyblockId(), "WISHING_COMPASS")) {
return TypedActionResult.pass(stack);
}
if (useCompass()) {