diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-04-05 18:44:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 18:44:48 +0200 |
commit | f90096bad0e0210cfba8bc1fe1113ecb296aa6da (patch) | |
tree | 9cfc001d5cc368d84dfbb6f60c9efc66b64e2126 /src/main/java | |
parent | c2cbd377bc172a2fae07cbd162bff312d4598009 (diff) | |
download | skyhanni-f90096bad0e0210cfba8bc1fe1113ecb296aa6da.tar.gz skyhanni-f90096bad0e0210cfba8bc1fe1113ecb296aa6da.tar.bz2 skyhanni-f90096bad0e0210cfba8bc1fe1113ecb296aa6da.zip |
Fix: Not showing MP when no power (#1366)
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt index 414540ea5..85b0e8ec7 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt @@ -100,6 +100,10 @@ object MaxwellAPI { "gui.selectedpower", "§aPower is selected!" ) + private val noPowerSelectedPattern by group.pattern( + "gui.noselectedpower", + "(?:§.)*Visit Maxwell in the Hub to learn" + ) private val accessoryBagStack by group.pattern( "stack.accessorybag", "§.Accessory Bag" @@ -242,6 +246,8 @@ object MaxwellAPI { return } + if (noPowerSelectedPattern.matches(line)) currentPower = getPowerByNameOrNull("No Power") + inventoryMPPattern.matchMatcher(line) { // MagicalPower is boosted in catacombs if (IslandType.CATACOMBS.isInIsland()) return@matchMatcher |