diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2020-07-30 01:38:19 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2020-07-30 01:38:19 +0200 |
commit | 1f49e7e4350298dad2e0a6e340b608a80a625e4b (patch) | |
tree | a75142de2c9500a4136b101a2dcd4527b0733f45 /src/Network.cpp | |
parent | Minor protocol support improvement (diff) | |
download | AltCraft-1f49e7e4350298dad2e0a6e340b608a80a625e4b.tar AltCraft-1f49e7e4350298dad2e0a6e340b608a80a625e4b.tar.gz AltCraft-1f49e7e4350298dad2e0a6e340b608a80a625e4b.tar.bz2 AltCraft-1f49e7e4350298dad2e0a6e340b608a80a625e4b.tar.lz AltCraft-1f49e7e4350298dad2e0a6e340b608a80a625e4b.tar.xz AltCraft-1f49e7e4350298dad2e0a6e340b608a80a625e4b.tar.zst AltCraft-1f49e7e4350298dad2e0a6e340b608a80a625e4b.zip |
Diffstat (limited to 'src/Network.cpp')
-rw-r--r-- | src/Network.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network.cpp b/src/Network.cpp index bb92e7f..4280b50 100644 --- a/src/Network.cpp +++ b/src/Network.cpp @@ -98,7 +98,8 @@ void Network::SendPacket(Packet &packet, int compressionThreshold) { stream->WriteVarInt(packetSize.GetCountedSize()); stream->WriteVarInt(packet.GetPacketId()); packet.ToStream(stream.get()); - } + } + stream->Flush(); } std::shared_ptr<Packet> Network::ReceivePacketByPacketId(int packetId, ConnectionState state, StreamInput &stream) { |