diff options
author | Filip <54005272+MightyFilipns@users.noreply.github.com> | 2024-11-04 10:01:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 10:01:31 +0100 |
commit | fa908f577d1b30be21cdbbb94eb2a5642e5cab32 (patch) | |
tree | 98dc793ea31099912c165860b029d563b27b6a98 /src | |
parent | Overhaul endian handling in ByteBuffer and FastNBT (#5543) (diff) | |
download | cuberite-fa908f577d1b30be21cdbbb94eb2a5642e5cab32.tar cuberite-fa908f577d1b30be21cdbbb94eb2a5642e5cab32.tar.gz cuberite-fa908f577d1b30be21cdbbb94eb2a5642e5cab32.tar.bz2 cuberite-fa908f577d1b30be21cdbbb94eb2a5642e5cab32.tar.lz cuberite-fa908f577d1b30be21cdbbb94eb2a5642e5cab32.tar.xz cuberite-fa908f577d1b30be21cdbbb94eb2a5642e5cab32.tar.zst cuberite-fa908f577d1b30be21cdbbb94eb2a5642e5cab32.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Protocol/ChunkDataSerializer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/ChunkDataSerializer.cpp b/src/Protocol/ChunkDataSerializer.cpp index cfabc6e31..6b5553ee7 100644 --- a/src/Protocol/ChunkDataSerializer.cpp +++ b/src/Protocol/ChunkDataSerializer.cpp @@ -502,7 +502,7 @@ inline void cChunkDataSerializer::Serialize477(const int a_ChunkX, const int a_C // Write each chunk section... ChunkDef_ForEachSection(a_BlockData, a_LightData, { - m_Packet.WriteBEInt16(-1); + m_Packet.WriteBEInt16(ChunkBlockData::SectionBlockCount); // a temp fix to make sure sections don't disappear m_Packet.WriteBEUInt8(BitsPerEntry); m_Packet.WriteVarInt32(static_cast<UInt32>(ChunkSectionDataArraySize)); WriteBlockSectionSeamless<&Palette477>(Blocks, Metas, BitsPerEntry); |