aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexia Luna <me@alexia.lol>2024-03-27 20:11:13 +0100
committerGitHub <noreply@github.com>2024-03-27 20:11:13 +0100
commit83deeb976adb3dbd5aff892368095d27a8dfc29d (patch)
tree640535b12f68f29b435b14e860a3f2eaea5b2786 /src
parent33a50f43576779dc9aa92e2fba066751d2b38e64 (diff)
downloadNotEnoughUpdates-83deeb976adb3dbd5aff892368095d27a8dfc29d.tar.gz
NotEnoughUpdates-83deeb976adb3dbd5aff892368095d27a8dfc29d.tar.bz2
NotEnoughUpdates-83deeb976adb3dbd5aff892368095d27a8dfc29d.zip
Fix King's Scent not being detected with Effects widget (#1064)
Fix: King's Scent not being detected with Effects widget
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java
index c6e714fe..80ab269d 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java
@@ -22,12 +22,14 @@ package io.github.moulberry.notenoughupdates.miscfeatures;
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
import io.github.moulberry.notenoughupdates.autosubscribe.NEUAutoSubscribe;
import io.github.moulberry.notenoughupdates.core.util.Line;
+import io.github.moulberry.notenoughupdates.core.util.StringUtils;
import io.github.moulberry.notenoughupdates.core.util.Vec3Comparable;
import io.github.moulberry.notenoughupdates.events.SpawnParticleEvent;
import io.github.moulberry.notenoughupdates.options.NEUConfig;
import io.github.moulberry.notenoughupdates.options.customtypes.NEUDebugFlag;
import io.github.moulberry.notenoughupdates.util.NEUDebugLogger;
import io.github.moulberry.notenoughupdates.util.SBInfo;
+import io.github.moulberry.notenoughupdates.util.TabListUtils;
import io.github.moulberry.notenoughupdates.util.Utils;
import net.minecraft.client.Minecraft;
import net.minecraft.event.ClickEvent;
@@ -499,7 +501,15 @@ public class CrystalWishingCompassSolver {
}
private boolean isKingsScentPresent() {
- return SBInfo.getInstance().footer.getUnformattedText().contains("King's Scent I");
+ if (SBInfo.getInstance().footer.getUnformattedText().contains("King's Scent I")) {
+ return true;
+ }
+ for (String name : TabListUtils.getTabList()) {
+ if (StringUtils.cleanColour(name).contains("King's Scent I")) {
+ return true;
+ }
+ }
+ return false;
}
private EnumSet<Crystal> getFoundCrystals() {