summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-19 21:55:03 +0200
committermadmaxoft <github@xoft.cz>2013-08-19 21:55:03 +0200
commit94f8884f607deffb486f74a753dca2ea9c84cdbc (patch)
treeda97530848526e371b395b23206e0ca9d46f4219 /source/ClientHandle.cpp
parentFixed cEvent TimedWait on Linux. (diff)
downloadcuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar
cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.gz
cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.bz2
cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.lz
cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.xz
cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.tar.zst
cuberite-94f8884f607deffb486f74a753dca2ea9c84cdbc.zip
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r--source/ClientHandle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 07d580085..57830f63c 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -1502,6 +1502,8 @@ void cClientHandle::SendBlockChange(int a_BlockX, int a_BlockY, int a_BlockZ, BL
void cClientHandle::SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSetBlockVector & a_Changes)
{
+ ASSERT(!a_Changes.empty()); // We don't want to be sending empty change packets!
+
m_Protocol->SendBlockChanges(a_ChunkX, a_ChunkZ, a_Changes);
}