diff options
author | Mattes D <github@xoft.cz> | 2015-03-28 10:43:59 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-03-28 10:44:42 +0100 |
commit | 53f5cc209fd3e959cd81bec718c73f44cdd07706 (patch) | |
tree | 2b55e72006c24d34d216965db546498a40b9d9c4 /src/Items | |
parent | Merge pull request #1826 from mc-server/UnifyPacketizer (diff) | |
download | cuberite-53f5cc209fd3e959cd81bec718c73f44cdd07706.tar cuberite-53f5cc209fd3e959cd81bec718c73f44cdd07706.tar.gz cuberite-53f5cc209fd3e959cd81bec718c73f44cdd07706.tar.bz2 cuberite-53f5cc209fd3e959cd81bec718c73f44cdd07706.tar.lz cuberite-53f5cc209fd3e959cd81bec718c73f44cdd07706.tar.xz cuberite-53f5cc209fd3e959cd81bec718c73f44cdd07706.tar.zst cuberite-53f5cc209fd3e959cd81bec718c73f44cdd07706.zip |
Diffstat (limited to 'src/Items')
-rw-r--r-- | src/Items/ItemSlab.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemSlab.h b/src/Items/ItemSlab.h index 1b68b9d0c..b0b5ce005 100644 --- a/src/Items/ItemSlab.h +++ b/src/Items/ItemSlab.h @@ -44,8 +44,8 @@ public: NIBBLETYPE ClickedBlockMeta; a_World.GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, ClickedBlockType, ClickedBlockMeta); if ( - (ClickedBlockType == m_ItemType) && // Placing the same slab material - (ClickedBlockMeta == a_EquippedItem.m_ItemDamage) // Placing the same slab sub-kind (and existing slab is single) + (ClickedBlockType == m_ItemType) && // Placing the same slab material + ((ClickedBlockMeta & 0x07) == a_EquippedItem.m_ItemDamage) // Placing the same slab sub-kind (and existing slab is single) ) { // If clicking the top side of a bottom-half slab, combine into a doubleslab: |