summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2024-11-05 00:06:04 +0100
committerAlexander Harkness <me@bearbin.net>2024-11-05 00:06:04 +0100
commit669b4213668c046693459ced1886a3ed7b011761 (patch)
tree856d24f62b06975a5af7ab1a346de6e1b3727c51
parentMerge remote-tracking branch 'origin/master' into real-block-count (diff)
downloadcuberite-669b4213668c046693459ced1886a3ed7b011761.tar
cuberite-669b4213668c046693459ced1886a3ed7b011761.tar.gz
cuberite-669b4213668c046693459ced1886a3ed7b011761.tar.bz2
cuberite-669b4213668c046693459ced1886a3ed7b011761.tar.lz
cuberite-669b4213668c046693459ced1886a3ed7b011761.tar.xz
cuberite-669b4213668c046693459ced1886a3ed7b011761.tar.zst
cuberite-669b4213668c046693459ced1886a3ed7b011761.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 6f95fb472..fa396e81d 100644
--- a/src/Protocol/ChunkDataSerializer.cpp
+++ b/src/Protocol/ChunkDataSerializer.cpp
@@ -503,7 +503,7 @@ inline void cChunkDataSerializer::Serialize477(const int a_ChunkX, const int a_C
ChunkDef_ForEachSection(a_BlockData, a_LightData,
{
// Count non-air blocks.
- int BlockCount = 0;
+ Int16 BlockCount = 0;
if (Blocks != nullptr)
{
for (size_t i = 0; i != ChunkBlockData::SectionBlockCount; i++)