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:
Draycia authored and Jason Penilla committed 2024-03-07 10:47:41 -08:00
1 parent c27896e515
commit 6006e45bf3
1 file changed
+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;