diff options
author | Mattes D <github@xoft.cz> | 2014-03-08 18:27:24 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-08 18:27:24 +0100 |
commit | 3a6499b192b4d0cf28d960a5f9ac09ee44265d5c (patch) | |
tree | 3fabece6b0dbac4c229453c81f1a57bb248ef9b8 /src/Blocks/BlockVine.h | |
parent | Merge pull request #770 from xdot/master (diff) | |
parent | Moved returns (diff) | |
download | cuberite-3a6499b192b4d0cf28d960a5f9ac09ee44265d5c.tar cuberite-3a6499b192b4d0cf28d960a5f9ac09ee44265d5c.tar.gz cuberite-3a6499b192b4d0cf28d960a5f9ac09ee44265d5c.tar.bz2 cuberite-3a6499b192b4d0cf28d960a5f9ac09ee44265d5c.tar.lz cuberite-3a6499b192b4d0cf28d960a5f9ac09ee44265d5c.tar.xz cuberite-3a6499b192b4d0cf28d960a5f9ac09ee44265d5c.tar.zst cuberite-3a6499b192b4d0cf28d960a5f9ac09ee44265d5c.zip |
Diffstat (limited to 'src/Blocks/BlockVine.h')
-rw-r--r-- | src/Blocks/BlockVine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Blocks/BlockVine.h b/src/Blocks/BlockVine.h index d8c114284..e28645142 100644 --- a/src/Blocks/BlockVine.h +++ b/src/Blocks/BlockVine.h @@ -1,8 +1,7 @@ - #pragma once #include "BlockHandler.h" - +#include "MetaRotater.h" @@ -180,8 +179,8 @@ public: { return ((a_Meta << 1) | (a_Meta >> 3)) & 0x0f; // Rotate bits to the left } - - + + virtual NIBBLETYPE MetaMirrorXY(NIBBLETYPE a_Meta) override { // Bits 2 and 4 stay, bits 1 and 3 swap @@ -194,6 +193,7 @@ public: // Bits 1 and 3 stay, bits 2 and 4 swap return ((a_Meta & 0x05) | ((a_Meta & 0x02) << 2) | ((a_Meta & 0x08) >> 2)); } + } ; |