diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt index bd90777b3..a0a42c767 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt @@ -46,14 +46,18 @@ object HoppityEggsCompactChat { if (hoppityEggChat.isNotEmpty()) { ChatUtils.hoverableChat(createCompactMessage(), hover = hoppityEggChat, prefix = false) } + resetCompactData() + } + private fun resetCompactData() { + this.hoppityEggChat = mutableListOf() this.duplicate = false this.newRabbit = false - lastRarity = "" - lastName = "" - lastProfit = "" - lastChatMeal = null - lastDuplicateAmount = null + this.lastRarity = "" + this.lastName = "" + this.lastProfit = "" + this.lastChatMeal = null + this.lastDuplicateAmount = null } private fun createCompactMessage(): String { @@ -74,7 +78,7 @@ object HoppityEggsCompactChat { fun handleChat(event: LorenzChatEvent) { HoppityEggsManager.eggFoundPattern.matchMatcher(event.message) { - hoppityEggChat = mutableListOf() + resetCompactData() lastChatMeal = getEggType(event) compactChat(event) } |