diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-10-06 22:02:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-06 22:02:48 +0200 |
commit | 4df35d062a41f0e8fed82caf2249c2e71f5b4058 (patch) | |
tree | dbf761eeeb39933596a21ad1e5db00ffb4fd9ef0 /src/main/java/at/hannibal2/skyhanni/data | |
parent | 3326753f29824791df28a941e2f4fc239992c9f1 (diff) | |
download | skyhanni-4df35d062a41f0e8fed82caf2249c2e71f5b4058.tar.gz skyhanni-4df35d062a41f0e8fed82caf2249c2e71f5b4058.tar.bz2 skyhanni-4df35d062a41f0e8fed82caf2249c2e71f5b4058.zip |
Fix: Unknown Perkpocalypse Mayor Chat Spam (#2683)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt index 469c48489..a07960231 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/MayorAPI.kt @@ -170,7 +170,7 @@ object MayorAPI { } ?: false } ?: return - val perk = stack.getLore().nextAfter({ perkpocalypsePerksPattern.matches(it) }) ?: return + val perk = stack.getLore().nextAfter({ perkpocalypsePerksPattern.matches(it) }, 2) ?: return // This is the first Perk of the Perkpocalypse Mayor val jerryMayor = getMayorFromPerk(getPerkFromName(perk.removeColor()) ?: return)?.addAllPerks() ?: return |