summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-07 10:29:56 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-07 10:29:56 +0200
commit6c186ff02a3c57e77ba98fa46afe539aed96accb (patch)
tree6f914c039e9bccdbff99d840a16d0a994c47d955 /source/Protocol/Protocol125.cpp
parentFixed an invalid direction to AddDirection() (diff)
downloadcuberite-6c186ff02a3c57e77ba98fa46afe539aed96accb.tar
cuberite-6c186ff02a3c57e77ba98fa46afe539aed96accb.tar.gz
cuberite-6c186ff02a3c57e77ba98fa46afe539aed96accb.tar.bz2
cuberite-6c186ff02a3c57e77ba98fa46afe539aed96accb.tar.lz
cuberite-6c186ff02a3c57e77ba98fa46afe539aed96accb.tar.xz
cuberite-6c186ff02a3c57e77ba98fa46afe539aed96accb.tar.zst
cuberite-6c186ff02a3c57e77ba98fa46afe539aed96accb.zip
Diffstat (limited to 'source/Protocol/Protocol125.cpp')
-rw-r--r--source/Protocol/Protocol125.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp
index 53b9b55db..66519b0dd 100644
--- a/source/Protocol/Protocol125.cpp
+++ b/source/Protocol/Protocol125.cpp
@@ -167,12 +167,12 @@ void cProtocol125::SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSetBlockV
WriteInt (a_ChunkX);
WriteInt (a_ChunkZ);
WriteShort((unsigned short)a_Changes.size());
- WriteInt (sizeof(int) * a_Changes.size());
+ WriteUInt (sizeof(int) * a_Changes.size());
for (sSetBlockVector::const_iterator itr = a_Changes.begin(), end = a_Changes.end(); itr != end; ++itr)
{
unsigned int Coords = itr->y | (itr->z << 8) | (itr->x << 12);
unsigned int Blocks = itr->BlockMeta | (itr->BlockType << 4);
- WriteInt(Coords << 16 | Blocks);
+ WriteUInt(Coords << 16 | Blocks);
}
Flush();
}