Skip to content

Commit

Permalink
fix: Geary breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Dec 4, 2024
1 parent 7b1d9bd commit e497ac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ data class ChattyChannel(
}

// Add spying players
val spies = chatty.spyingPlayers.mapWithEntity { this.player.takeIf { key in this.spying.channels } }.mapNotNull { it.data }
val spies = chatty.spyingPlayers.mapWithEntity { q -> q.player.takeIf { key in q.spying.channels } }.mapNotNull { it.data }
audiences.addAll(spies)

return audiences
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class ChattyProxyListener : PluginMessageListener {
val channel = chatty.config.channels[channelId]
val onlinePlayers = Bukkit.getOnlinePlayers().filter { it.server == Bukkit.getServer() }

val canSpy = chatty.spyingPlayers.mapWithEntity {
this.player.takeIf { spying.channels.contains(channelId) }
val canSpy = chatty.spyingPlayers.mapWithEntity { q ->
q.player.takeIf { q.spying.channels.contains(channelId) }
}.mapNotNull { it.data }

// If the channel is not found, it is discord
Expand Down

0 comments on commit e497ac8

Please sign in to comment.