summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockSlab.h
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-03-24 03:11:01 +0100
committernarroo <narroo@vt.edu>2014-03-24 03:11:01 +0100
commit2343b0dfbe12f6db76de1b4ed03cd902975d77b3 (patch)
treed4e7ae6bf16ec620f6b9dda016a3918fee33f431 /src/Blocks/BlockSlab.h
parentFixed missing comment terminator. (diff)
downloadcuberite-2343b0dfbe12f6db76de1b4ed03cd902975d77b3.tar
cuberite-2343b0dfbe12f6db76de1b4ed03cd902975d77b3.tar.gz
cuberite-2343b0dfbe12f6db76de1b4ed03cd902975d77b3.tar.bz2
cuberite-2343b0dfbe12f6db76de1b4ed03cd902975d77b3.tar.lz
cuberite-2343b0dfbe12f6db76de1b4ed03cd902975d77b3.tar.xz
cuberite-2343b0dfbe12f6db76de1b4ed03cd902975d77b3.tar.zst
cuberite-2343b0dfbe12f6db76de1b4ed03cd902975d77b3.zip
Diffstat (limited to 'src/Blocks/BlockSlab.h')
-rw-r--r--src/Blocks/BlockSlab.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Blocks/BlockSlab.h b/src/Blocks/BlockSlab.h
index 7cd2c97b2..b18bf7ef3 100644
--- a/src/Blocks/BlockSlab.h
+++ b/src/Blocks/BlockSlab.h
@@ -14,8 +14,6 @@
-
-
class cBlockSlabHandler :
public cBlockHandler
{
@@ -184,6 +182,15 @@ public:
ASSERT(!"Unhandled double slab type!");
return "";
}
+
+
+ virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override
+ {
+ NIBBLETYPE OtherMeta = a_Meta & 0x07; // Contains unrelate meta data.
+
+ // 8th bit is up/down. 1 right-side-up, 0 is up-side-down.
+ return (a_Meta & 0x08) ? 0x00 + OtherMeta : 0x01 + OtherMeta;
+ }
} ;