diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-18 23:41:42 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-18 23:41:42 +0200 |
commit | 6167c79e7a822cb14431985a82f4cc5b463e556f (patch) | |
tree | c15864c1c047290ac29745a0e1fd8b00947c029a /src/ClientHandle.cpp | |
parent | Merge pull request #1005 from SphinxC0re/LoadPluginfolder (diff) | |
download | cuberite-6167c79e7a822cb14431985a82f4cc5b463e556f.tar cuberite-6167c79e7a822cb14431985a82f4cc5b463e556f.tar.gz cuberite-6167c79e7a822cb14431985a82f4cc5b463e556f.tar.bz2 cuberite-6167c79e7a822cb14431985a82f4cc5b463e556f.tar.lz cuberite-6167c79e7a822cb14431985a82f4cc5b463e556f.tar.xz cuberite-6167c79e7a822cb14431985a82f4cc5b463e556f.tar.zst cuberite-6167c79e7a822cb14431985a82f4cc5b463e556f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 1009cdbd6..6d0fae3ae 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -816,9 +816,10 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, eB } if ( - (Diff(m_Player->GetPosX(), (double)a_BlockX) > 6) || + ((a_Status == DIG_STATUS_STARTED) || (a_Status == DIG_STATUS_FINISHED)) && // Only do a radius check for block destruction - things like pickup tossing send coordinates that are to be ignored + ((Diff(m_Player->GetPosX(), (double)a_BlockX) > 6) || (Diff(m_Player->GetPosY(), (double)a_BlockY) > 6) || - (Diff(m_Player->GetPosZ(), (double)a_BlockZ) > 6) + (Diff(m_Player->GetPosZ(), (double)a_BlockZ) > 6)) ) { m_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player); |