summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-27 22:08:03 +0100
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-27 22:08:03 +0100
commit4ce5f215ed253c6f35462dcc7e33157078830d96 (patch)
tree30402640217041803d5d21c69f420048c6126e28 /source
parentFixed slab usage in creative mode (diff)
downloadcuberite-4ce5f215ed253c6f35462dcc7e33157078830d96.tar
cuberite-4ce5f215ed253c6f35462dcc7e33157078830d96.tar.gz
cuberite-4ce5f215ed253c6f35462dcc7e33157078830d96.tar.bz2
cuberite-4ce5f215ed253c6f35462dcc7e33157078830d96.tar.lz
cuberite-4ce5f215ed253c6f35462dcc7e33157078830d96.tar.xz
cuberite-4ce5f215ed253c6f35462dcc7e33157078830d96.tar.zst
cuberite-4ce5f215ed253c6f35462dcc7e33157078830d96.zip
Diffstat (limited to 'source')
-rw-r--r--source/ClientHandle.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index f32b6bec7..36a84ad41 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -666,6 +666,16 @@ void cClientHandle::HandleBlockPlace(int a_BlockX, int a_BlockY, int a_BlockZ, c
}
else if (ItemHandler->IsPlaceable())
{
+ if (cRoot::Get()->GetPluginManager()->CallHookBlockPlace(m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, Equipped))
+ {
+ if (a_BlockFace > -1)
+ {
+ AddDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
+ m_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
+ }
+ return;
+ }
+
if (a_BlockFace < 0)
{
// clicked in air
@@ -737,16 +747,6 @@ void cClientHandle::HandleBlockPlace(int a_BlockX, int a_BlockY, int a_BlockZ, c
}
}
}
-
- if (cRoot::Get()->GetPluginManager()->CallHookBlockPlace(m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, Equipped))
- {
- if (a_BlockFace > -1)
- {
- AddDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
- m_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
- }
- return;
- }
}