summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-10-07 18:21:39 +0200
committerHowaner <franzi.moos@googlemail.com>2014-10-07 18:21:39 +0200
commita5e09155c0188472592fe40a46c17b8bdd330ac3 (patch)
tree9884755eb0a30b7bcd26051a093bf6d83a4e885b /src/ClientHandle.cpp
parentCorrected IsBlockAttachable() in BlockVine.h (diff)
downloadcuberite-a5e09155c0188472592fe40a46c17b8bdd330ac3.tar
cuberite-a5e09155c0188472592fe40a46c17b8bdd330ac3.tar.gz
cuberite-a5e09155c0188472592fe40a46c17b8bdd330ac3.tar.bz2
cuberite-a5e09155c0188472592fe40a46c17b8bdd330ac3.tar.lz
cuberite-a5e09155c0188472592fe40a46c17b8bdd330ac3.tar.xz
cuberite-a5e09155c0188472592fe40a46c17b8bdd330ac3.tar.zst
cuberite-a5e09155c0188472592fe40a46c17b8bdd330ac3.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 3b677460b..b7e85cb32 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1113,16 +1113,16 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
cWorld * World = m_Player->GetWorld();
cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem());
- if (cRoot::Get()->GetPluginManager()->CallHookPlayerBreakingBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_OldBlock, a_OldMeta))
+ if (a_OldBlock == E_BLOCK_AIR)
{
- // A plugin doesn't agree with the breaking. Bail out. Send the block back to the client, so that it knows:
- m_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
+ LOGD("Dug air - what the function?");
return;
}
- if (a_OldBlock == E_BLOCK_AIR)
+ if (cRoot::Get()->GetPluginManager()->CallHookPlayerBreakingBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_OldBlock, a_OldMeta))
{
- LOGD("Dug air - what the function?");
+ // A plugin doesn't agree with the breaking. Bail out. Send the block back to the client, so that it knows:
+ m_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
return;
}