summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMightyFilipns <54005272+MightyFilipns@users.noreply.github.com>2024-05-11 22:51:48 +0200
committerGitHub <noreply@github.com>2024-05-11 22:51:48 +0200
commit660f65ac03c72b438003c87fd257f25b9ead32d1 (patch)
tree9b2ce498b410c412e8e2d63583124db931ef49a2
parentAdded extra possible Info.lua parameter that describes the dependencies (#5554) (diff)
downloadcuberite-660f65ac03c72b438003c87fd257f25b9ead32d1.tar
cuberite-660f65ac03c72b438003c87fd257f25b9ead32d1.tar.gz
cuberite-660f65ac03c72b438003c87fd257f25b9ead32d1.tar.bz2
cuberite-660f65ac03c72b438003c87fd257f25b9ead32d1.tar.lz
cuberite-660f65ac03c72b438003c87fd257f25b9ead32d1.tar.xz
cuberite-660f65ac03c72b438003c87fd257f25b9ead32d1.tar.zst
cuberite-660f65ac03c72b438003c87fd257f25b9ead32d1.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 cfabc6e31..e043263fa 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(4096); // 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);