summaryrefslogtreecommitdiffstats
path: root/src/Network.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Network.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Network.cpp b/src/Network.cpp
index 9cb2097..2c14327 100644
--- a/src/Network.cpp
+++ b/src/Network.cpp
@@ -93,11 +93,7 @@ void Network::SendPacket(Packet &packet, int compressionThreshold) {
stream->WriteVarInt(packet.GetPacketId());
packet.ToStream(stream);
} else {
- throw std::runtime_error("Compressing data");
- /*StreamBuffer buffer(packetSize.GetCountedSize());
- packet.ToStream(&buffer);
-
- z_stream stream;*/
+ throw std::runtime_error("Compressing send data not supported");
}
}
else {
@@ -177,7 +173,7 @@ std::shared_ptr<Packet> Network::ParsePacketPlay(PacketNamePlayCB id) {
case TabCompleteCB:
break;
case ChatMessageCB:
- break;
+ return std::make_shared<PacketChatMessageCB>();
case MultiBlockChange:
return std::make_shared<PacketMultiBlockChange>();
case ConfirmTransactionCB: