Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed May 27, 2024
1 parent cf43a19 commit 5cb8921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forge/src/main/kotlin/dev/erdragh/astralbot/forge/BotMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ object BotMod {
}

private fun onSystemMessage(event: SystemMessageEvent) {
if (event.component !is DiscordMessageComponent) {
minecraftHandler?.sendChatToDiscord(null as ServerPlayer?, event.component)
if (event.message !is DiscordMessageComponent) {
minecraftHandler?.sendChatToDiscord(null as ServerPlayer?, event.message)
}
}

Expand Down

0 comments on commit 5cb8921

Please sign in to comment.