summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-29 14:18:26 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-29 14:18:26 +0100
commit515e4bdb13de8fc749fb3f0910beb18974895d6c (patch)
tree8d7a8fce504c6b315ce1b88fabe79d6980b339d7
parentRemoved leftover clienthandle code (diff)
downloadcuberite-515e4bdb13de8fc749fb3f0910beb18974895d6c.tar
cuberite-515e4bdb13de8fc749fb3f0910beb18974895d6c.tar.gz
cuberite-515e4bdb13de8fc749fb3f0910beb18974895d6c.tar.bz2
cuberite-515e4bdb13de8fc749fb3f0910beb18974895d6c.tar.lz
cuberite-515e4bdb13de8fc749fb3f0910beb18974895d6c.tar.xz
cuberite-515e4bdb13de8fc749fb3f0910beb18974895d6c.tar.zst
cuberite-515e4bdb13de8fc749fb3f0910beb18974895d6c.zip
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 27c6b1226..37672b7f0 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -933,7 +933,7 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, e
cBlockHandler * BlockHandler = cBlockInfo::GetHandler(BlockType);
BlockHandler->OnCancelRightClick(ChunkInterface, *World, m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
- if (a_BlockFace > BLOCK_FACE_NONE)
+ if (a_BlockFace != BLOCK_FACE_NONE)
{
AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
World->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
@@ -962,7 +962,7 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, e
);
// Let's send the current world block to the client, so that it can immediately "let the user know" that they haven't placed the block
- if (a_BlockFace > BLOCK_FACE_NONE)
+ if (a_BlockFace != BLOCK_FACE_NONE)
{
AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
World->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player);
@@ -990,7 +990,7 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, e
cItemHandler * ItemHandler = cItemHandler::GetItemHandler(Equipped.m_ItemType);
- if (ItemHandler->IsPlaceable() && (a_BlockFace > BLOCK_FACE_NONE))
+ if (ItemHandler->IsPlaceable() && (a_BlockFace != BLOCK_FACE_NONE))
{
HandlePlaceBlock(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, *ItemHandler);
}