mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Fix #505
This commit is contained in:
1 file changed
+2
-1
@@ -408,7 +408,8 @@ public class CarbonChannelRegistry extends ChatListenerInternal implements Chann
|
||||
// TODO: trigger platform events related to chat
|
||||
this.sendMessageInChannel(player, chatChannel, message);
|
||||
} else {
|
||||
if (this.config.primaryConfig().returnToDefaultChannel() && player.selectedChannel().key().equals(channelKey)) {
|
||||
final @Nullable ChatChannel fromChannel = player.selectedChannel();
|
||||
if (this.config.primaryConfig().returnToDefaultChannel() && fromChannel != null && fromChannel.key().equals(channelKey)) {
|
||||
chatChannel = this.defaultChannel();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user