diff options
author | Mattes D <github@xoft.cz> | 2019-09-09 18:24:03 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-09-10 09:45:28 +0200 |
commit | 3bc0f07fea72f4334f4e68227a065fba10e83d4d (patch) | |
tree | 44e41b0da82b80ddb9cca27419fdbb793a2351a7 /src/Protocol | |
parent | Protocol: Use logical outgoing packet types. (diff) | |
download | cuberite-3bc0f07fea72f4334f4e68227a065fba10e83d4d.tar cuberite-3bc0f07fea72f4334f4e68227a065fba10e83d4d.tar.gz cuberite-3bc0f07fea72f4334f4e68227a065fba10e83d4d.tar.bz2 cuberite-3bc0f07fea72f4334f4e68227a065fba10e83d4d.tar.lz cuberite-3bc0f07fea72f4334f4e68227a065fba10e83d4d.tar.xz cuberite-3bc0f07fea72f4334f4e68227a065fba10e83d4d.tar.zst cuberite-3bc0f07fea72f4334f4e68227a065fba10e83d4d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/ChunkDataSerializer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/ChunkDataSerializer.cpp b/src/Protocol/ChunkDataSerializer.cpp index a59fee5ac..33905b8e8 100644 --- a/src/Protocol/ChunkDataSerializer.cpp +++ b/src/Protocol/ChunkDataSerializer.cpp @@ -211,7 +211,7 @@ void cChunkDataSerializer::Serialize107(AString & a_Data, int a_ChunkX, int a_Ch // Write each chunk section... ForEachSection(m_Data, [&](const cChunkData::sChunkSection & a_Section) { - Packet.WriteBEUInt8(BitsPerEntry); + Packet.WriteBEUInt8(static_cast<UInt8>(BitsPerEntry)); Packet.WriteVarInt32(0); // Palette length is 0 Packet.WriteVarInt32(static_cast<UInt32>(ChunkSectionDataArraySize)); @@ -344,7 +344,7 @@ void cChunkDataSerializer::Serialize110(AString & a_Data, int a_ChunkX, int a_Ch // Write each chunk section... ForEachSection(m_Data, [&](const cChunkData::sChunkSection & a_Section) { - Packet.WriteBEUInt8(BitsPerEntry); + Packet.WriteBEUInt8(static_cast<UInt8>(BitsPerEntry)); Packet.WriteVarInt32(0); // Palette length is 0 Packet.WriteVarInt32(static_cast<UInt32>(ChunkSectionDataArraySize)); |