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/features/gui | |
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/features/gui')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt index 769184077..e1c5d3f84 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt @@ -784,6 +784,11 @@ private fun getMayorDisplayPair() = buildList { } if (!mayorConfig.showExtraMayor) return@buildList + addAll(addMinister()) + addAll(addPerkpocalypseMayor()) +} + +private fun addMinister() = buildList { val ministerName = MayorAPI.currentMinister?.mayorName?.let { MayorAPI.mayorNameWithColorCode(it) } ?: return@buildList add(ministerName to HorizontalAlignment.LEFT) @@ -792,7 +797,9 @@ private fun getMayorDisplayPair() = buildList { add(" §7- §e${perk.perkName}" to HorizontalAlignment.LEFT) } } +} +private fun addPerkpocalypseMayor() = buildList { val jerryExtraMayor = MayorAPI.jerryExtraMayor val extraMayor = jerryExtraMayor.first ?: return@buildList |