mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +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
|
// TODO: trigger platform events related to chat
|
||||||
this.sendMessageInChannel(player, chatChannel, message);
|
this.sendMessageInChannel(player, chatChannel, message);
|
||||||
} else {
|
} 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();
|
chatChannel = this.defaultChannel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user