summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-04 13:19:25 +0200
committermadmaxoft <github@xoft.cz>2014-04-04 13:19:25 +0200
commit87f39e9e287aa1a7e513036f5004ec24ac789f40 (patch)
treefaef3cd0e474a604f455dbbff7435951aa88351d /src/Protocol
parentChanged cNoise seed to signed. (diff)
downloadcuberite-87f39e9e287aa1a7e513036f5004ec24ac789f40.tar
cuberite-87f39e9e287aa1a7e513036f5004ec24ac789f40.tar.gz
cuberite-87f39e9e287aa1a7e513036f5004ec24ac789f40.tar.bz2
cuberite-87f39e9e287aa1a7e513036f5004ec24ac789f40.tar.lz
cuberite-87f39e9e287aa1a7e513036f5004ec24ac789f40.tar.xz
cuberite-87f39e9e287aa1a7e513036f5004ec24ac789f40.tar.zst
cuberite-87f39e9e287aa1a7e513036f5004ec24ac789f40.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol125.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol125.cpp b/src/Protocol/Protocol125.cpp
index 231ae410f..bf946ef19 100644
--- a/src/Protocol/Protocol125.cpp
+++ b/src/Protocol/Protocol125.cpp
@@ -210,7 +210,7 @@ void cProtocol125::SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSetBlockV
WriteInt (a_ChunkX);
WriteInt (a_ChunkZ);
WriteShort((short)a_Changes.size());
- WriteUInt ((UInt32)(sizeof(int) * a_Changes.size()));
+ WriteUInt ((UInt32)(4 * a_Changes.size()));
for (sSetBlockVector::const_iterator itr = a_Changes.begin(), end = a_Changes.end(); itr != end; ++itr)
{
UInt32 Coords = ((UInt32)itr->y) | ((UInt32)(itr->z << 8)) | ((UInt32)(itr->x << 12));