summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2024-11-04 09:43:12 +0100
committerAlexander Harkness <me@bearbin.net>2024-11-04 09:43:12 +0100
commitd3b7f876bc3fb20067b3c082b9cefd07e9795509 (patch)
treef22e507fe3b692188480bba78f6a85f014a7b6f4
parentTemp fix for dissapearing section in 1.13 and 1.14 versions (diff)
downloadcuberite-d3b7f876bc3fb20067b3c082b9cefd07e9795509.tar
cuberite-d3b7f876bc3fb20067b3c082b9cefd07e9795509.tar.gz
cuberite-d3b7f876bc3fb20067b3c082b9cefd07e9795509.tar.bz2
cuberite-d3b7f876bc3fb20067b3c082b9cefd07e9795509.tar.lz
cuberite-d3b7f876bc3fb20067b3c082b9cefd07e9795509.tar.xz
cuberite-d3b7f876bc3fb20067b3c082b9cefd07e9795509.tar.zst
cuberite-d3b7f876bc3fb20067b3c082b9cefd07e9795509.zip
-rw-r--r--src/Protocol/ChunkDataSerializer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/ChunkDataSerializer.cpp b/src/Protocol/ChunkDataSerializer.cpp
index e043263fa..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(4096); // a temp fix to make sure sections don't disappear
+ 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);