diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-10-14 18:40:34 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:39:32 +0100 |
commit | abba018da3c2c8011b1485ee8e9e5b2690659c76 (patch) | |
tree | 88642b34e91957bbb5e6f05aca4107b512b7b4f2 /src/Network.cpp | |
parent | 2017-10-09 (diff) | |
download | AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.gz AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.bz2 AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.lz AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.xz AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.tar.zst AltCraft-abba018da3c2c8011b1485ee8e9e5b2690659c76.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Network.cpp | 8 |
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: |