summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-02-28 15:26:32 +0100
committerHowaner <franzi.moos@googlemail.com>2014-02-28 15:26:32 +0100
commit66c84250410bf24bc689436c570c284bc47e3638 (patch)
treeb0d9de1efb603c55c041505f6c12b7d5b092a846 /src/ClientHandle.cpp
parentFixed crash and some warnings in map handling. (diff)
downloadcuberite-66c84250410bf24bc689436c570c284bc47e3638.tar
cuberite-66c84250410bf24bc689436c570c284bc47e3638.tar.gz
cuberite-66c84250410bf24bc689436c570c284bc47e3638.tar.bz2
cuberite-66c84250410bf24bc689436c570c284bc47e3638.tar.lz
cuberite-66c84250410bf24bc689436c570c284bc47e3638.tar.xz
cuberite-66c84250410bf24bc689436c570c284bc47e3638.tar.zst
cuberite-66c84250410bf24bc689436c570c284bc47e3638.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index b08ceb5f6..ce549b0b1 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1043,7 +1043,7 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, e
if (
cBlockSlabHandler::IsAnySlabType(ClickedBlock) && // Is there a slab already?
cBlockSlabHandler::IsAnySlabType(EquippedBlock) && // Is the player placing another slab?
- ((ClickedBlockMeta & 0x07) == (EquippedBlockDamage & 0x07)) && // Is it the same slab type?
+ ((ClickedBlockMeta & 0x07) == EquippedBlockDamage) && // Is it the same slab type?
(
(a_BlockFace == BLOCK_FACE_TOP) || // Clicking the top of a bottom slab
(a_BlockFace == BLOCK_FACE_BOTTOM) // Clicking the bottom of a top slab