mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Always 'handle' chat message packets
Prevents lib from logging an exception when receiving server doesn't have the same channels as the sender
This commit is contained in:
1 parent
c27896e515
commit
6006e45bf3
1 file changed
+2
-1
+2
-1
@@ -97,7 +97,8 @@ public final class CarbonChatPacketHandler extends AbstractMessagingHandler {
|
||||
this.userManager.disbandPartyMessageReceived(pkt);
|
||||
return true;
|
||||
} else if (packet instanceof ChatMessagePacket messagePacket) {
|
||||
return this.handleMessagePacket(messagePacket);
|
||||
this.handleMessagePacket(messagePacket);
|
||||
return true; // Don't log an error when the channel doesn't exist
|
||||
} else if (packet instanceof LocalPlayersPacket playersPacket) {
|
||||
this.networkUsers.handlePacket(playersPacket);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user