summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-11 22:37:28 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-11 22:37:28 +0200
commit01001d2a49a3366e9b1eccf938d5073ab9a2f06e (patch)
tree5aced67e9a933dbf5c0fb7f112b4c4d13a9cfbf8 /src/ClientHandle.cpp
parentMoved the clicked-through block check to the top of the function. (diff)
downloadcuberite-01001d2a49a3366e9b1eccf938d5073ab9a2f06e.tar
cuberite-01001d2a49a3366e9b1eccf938d5073ab9a2f06e.tar.gz
cuberite-01001d2a49a3366e9b1eccf938d5073ab9a2f06e.tar.bz2
cuberite-01001d2a49a3366e9b1eccf938d5073ab9a2f06e.tar.lz
cuberite-01001d2a49a3366e9b1eccf938d5073ab9a2f06e.tar.xz
cuberite-01001d2a49a3366e9b1eccf938d5073ab9a2f06e.tar.zst
cuberite-01001d2a49a3366e9b1eccf938d5073ab9a2f06e.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index f09e9531d..4b5c52c8c 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1143,6 +1143,11 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
World->BroadcastSoundParticleEffect(2001, a_BlockX, a_BlockY, a_BlockZ, a_OldBlock, this);
World->DigBlock(a_BlockX, a_BlockY, a_BlockZ);
+ if (World->GetBlock(a_BlockX, a_BlockY + 1, a_BlockZ) == E_BLOCK_FIRE)
+ {
+ World->SetBlock(a_BlockX, a_BlockY + 1, a_BlockZ, E_BLOCK_AIR, 0);
+ }
+
cRoot::Get()->GetPluginManager()->CallHookPlayerBrokenBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_OldBlock, a_OldMeta);
}