diff options
author | madmaxoft <github@xoft.cz> | 2014-06-23 00:15:22 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-06-23 00:15:56 +0200 |
commit | dd6a9f655958dd634fe1bdacadef51d84fac7e39 (patch) | |
tree | a9f280fcf1676888a287eef9609f5be7080af858 /src | |
parent | Fixed sign and lever rotations. (diff) | |
download | cuberite-dd6a9f655958dd634fe1bdacadef51d84fac7e39.tar cuberite-dd6a9f655958dd634fe1bdacadef51d84fac7e39.tar.gz cuberite-dd6a9f655958dd634fe1bdacadef51d84fac7e39.tar.bz2 cuberite-dd6a9f655958dd634fe1bdacadef51d84fac7e39.tar.lz cuberite-dd6a9f655958dd634fe1bdacadef51d84fac7e39.tar.xz cuberite-dd6a9f655958dd634fe1bdacadef51d84fac7e39.tar.zst cuberite-dd6a9f655958dd634fe1bdacadef51d84fac7e39.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Blocks/BlockSlab.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/Blocks/BlockSlab.h b/src/Blocks/BlockSlab.h index f3f2366fd..6c861be86 100644 --- a/src/Blocks/BlockSlab.h +++ b/src/Blocks/BlockSlab.h @@ -124,6 +124,12 @@ public: return E_BLOCK_AIR; } + + virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override + { + // Toggle the 4th bit - up / down: + return (a_Meta ^ 0x08); + } } ; @@ -167,15 +173,6 @@ public: ASSERT(!"Unhandled double slab type!"); return ""; } - - - virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override - { - NIBBLETYPE OtherMeta = a_Meta & 0x07; // Contains unrelated meta data. - - // 8th bit is up/down. 1 right-side-up, 0 is up-side-down. - return (a_Meta & 0x08) ? 0x00 + OtherMeta : 0x01 + OtherMeta; - } } ; |