summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-15 20:34:22 +0200
committermadmaxoft <github@xoft.cz>2013-09-15 20:34:22 +0200
commit4e200df18ce04f6bd0c495ea24a7c21c2f799ded (patch)
tree75dad24f4f8deddb5d7d41b408126409be164a0d /source/ClientHandle.cpp
parentAPIDump: Added a first part of cWorld documentation. (diff)
parentPossible Linux compile fix (diff)
downloadcuberite-4e200df18ce04f6bd0c495ea24a7c21c2f799ded.tar
cuberite-4e200df18ce04f6bd0c495ea24a7c21c2f799ded.tar.gz
cuberite-4e200df18ce04f6bd0c495ea24a7c21c2f799ded.tar.bz2
cuberite-4e200df18ce04f6bd0c495ea24a7c21c2f799ded.tar.lz
cuberite-4e200df18ce04f6bd0c495ea24a7c21c2f799ded.tar.xz
cuberite-4e200df18ce04f6bd0c495ea24a7c21c2f799ded.tar.zst
cuberite-4e200df18ce04f6bd0c495ea24a7c21c2f799ded.zip
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r--source/ClientHandle.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 3cef29cba..1806ce8e6 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -914,15 +914,6 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, c
}
else
{
- // Check for Blocks not allowing placement on top
- if ((a_BlockFace == BLOCK_FACE_TOP) && !Handler->DoesAllowBlockOnTop())
- {
- // Resend the old block
- // Sometimes the client still places the block O.o
- World->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
- return;
- }
-
if (!BlockHandler(PlaceBlock)->DoesIgnoreBuildCollision())
{
// Tried to place a block *into* another?
@@ -944,13 +935,6 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, c
cBlockHandler * NewBlock = BlockHandler(BlockType);
- if ((a_BlockFace != BLOCK_FACE_TOP) && !NewBlock->CanBePlacedOnSide())
- {
- // Cannot be placed on the side of an other block
- World->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
- return;
- }
-
if (cRoot::Get()->GetPluginManager()->CallHookPlayerPlacingBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta))
{
// A plugin doesn't agree with placing the block, revert the block on the client: