summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-02 10:22:40 +0100
committerMattes D <github@xoft.cz>2014-03-02 10:22:40 +0100
commit0f2d9bc35f98ebe01fa83392f21ba18f63a68ad2 (patch)
tree3b5f0158e91c817336e124e34019cf479897e967 /src/ClientHandle.cpp
parentAdded more documentation for FastNBT parser. (diff)
parentUse switch in GetStepSound (diff)
downloadcuberite-0f2d9bc35f98ebe01fa83392f21ba18f63a68ad2.tar
cuberite-0f2d9bc35f98ebe01fa83392f21ba18f63a68ad2.tar.gz
cuberite-0f2d9bc35f98ebe01fa83392f21ba18f63a68ad2.tar.bz2
cuberite-0f2d9bc35f98ebe01fa83392f21ba18f63a68ad2.tar.lz
cuberite-0f2d9bc35f98ebe01fa83392f21ba18f63a68ad2.tar.xz
cuberite-0f2d9bc35f98ebe01fa83392f21ba18f63a68ad2.tar.zst
cuberite-0f2d9bc35f98ebe01fa83392f21ba18f63a68ad2.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..dd2116dbf 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