diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 04:17:57 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 04:17:57 +0100 |
commit | 1d990231f1670fbfa3dc40323c4aa6141c9cd19a (patch) | |
tree | 0f679be30fa1a58295747939f2b8614dd99b5320 /src/Packet.hpp | |
parent | Directory renamed (diff) | |
download | AltCraft-1d990231f1670fbfa3dc40323c4aa6141c9cd19a.tar AltCraft-1d990231f1670fbfa3dc40323c4aa6141c9cd19a.tar.gz AltCraft-1d990231f1670fbfa3dc40323c4aa6141c9cd19a.tar.bz2 AltCraft-1d990231f1670fbfa3dc40323c4aa6141c9cd19a.tar.lz AltCraft-1d990231f1670fbfa3dc40323c4aa6141c9cd19a.tar.xz AltCraft-1d990231f1670fbfa3dc40323c4aa6141c9cd19a.tar.zst AltCraft-1d990231f1670fbfa3dc40323c4aa6141c9cd19a.zip |
Diffstat (limited to 'src/Packet.hpp')
-rw-r--r-- | src/Packet.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Packet.hpp b/src/Packet.hpp index 4457893..57b39af 100644 --- a/src/Packet.hpp +++ b/src/Packet.hpp @@ -269,34 +269,34 @@ struct PacketSpawnPosition : Packet { struct PacketKeepAliveCB : Packet { void ToStream(StreamOutput *stream) override { - stream->WriteVarInt(KeepAliveId); + stream->WriteLong(KeepAliveId); } void FromStream(StreamInput *stream) override { - KeepAliveId = stream->ReadVarInt(); + KeepAliveId = stream->ReadLong(); } int GetPacketId() override { return PacketNamePlayCB::KeepAliveCB; } - int KeepAliveId; + long long KeepAliveId; }; struct PacketKeepAliveSB : Packet { void ToStream(StreamOutput *stream) override { - stream->WriteVarInt(KeepAliveId); + stream->WriteLong(KeepAliveId); } void FromStream(StreamInput *stream) override { - KeepAliveId = stream->ReadVarInt(); + KeepAliveId = stream->ReadLong(); } int GetPacketId() override { return PacketNamePlaySB::KeepAliveSB; } - int KeepAliveId; + long long KeepAliveId; PacketKeepAliveSB(int KeepAliveId) : KeepAliveId(KeepAliveId) {} }; |