summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-28 21:45:05 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-28 21:45:05 +0200
commit5e66d9aeabcb759319c1045680443e72f0c1d75b (patch)
treef8bcb41955b023a0bc47d8df949335917632ec81 /src/ClientHandle.cpp
parentImplemented tripwire(s) (hooks) (diff)
downloadcuberite-5e66d9aeabcb759319c1045680443e72f0c1d75b.tar
cuberite-5e66d9aeabcb759319c1045680443e72f0c1d75b.tar.gz
cuberite-5e66d9aeabcb759319c1045680443e72f0c1d75b.tar.bz2
cuberite-5e66d9aeabcb759319c1045680443e72f0c1d75b.tar.lz
cuberite-5e66d9aeabcb759319c1045680443e72f0c1d75b.tar.xz
cuberite-5e66d9aeabcb759319c1045680443e72f0c1d75b.tar.zst
cuberite-5e66d9aeabcb759319c1045680443e72f0c1d75b.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 16cfe1aec..e7b876b24 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1085,12 +1085,7 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
void cClientHandle::FinishDigAnimation()
{
- if (
- !m_HasStartedDigging || // Hasn't received the DIG_STARTED packet
- (m_LastDigBlockX == -1) ||
- (m_LastDigBlockY == -1) ||
- (m_LastDigBlockZ == -1)
- )
+ if (!m_HasStartedDigging) // Hasn't received the DIG_STARTED packet
{
return;
}