aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt
index 2529e7ff1..eb48bb4e9 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt
@@ -206,24 +206,20 @@ object PlayerChatManager {
private fun sendSystemMessage(event: LorenzChatEvent) {
with(SystemMessageEvent(event.message, event.chatComponent)) {
- val cancelled = postAndCatch()
- event.handleChat(cancelled, blockedReason, chatComponent)
+ postAndCatch()
+ event.handleChat(blockedReason, chatComponent)
}
}
private fun AbstractChatEvent.postChat(event: LorenzChatEvent) {
- val cancelled = postAndCatch()
- event.handleChat(cancelled, blockedReason, chatComponent)
+ postAndCatch()
+ event.handleChat(blockedReason, chatComponent)
}
private fun LorenzChatEvent.handleChat(
- cancelled: Boolean,
blockedReason: String?,
chatComponent: IChatComponent,
) {
- if (cancelled) {
- this.cancel()
- }
blockedReason?.let {
this.blockedReason = it
}