summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockLever.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-22 21:51:34 +0200
committermadmaxoft <github@xoft.cz>2014-06-23 00:15:55 +0200
commitd61ff4da3b9b6581d22e2a1d068dfb09143b0ad6 (patch)
tree735d8351e9c8f41b804d26532743aed1becd3fd5 /src/Blocks/BlockLever.h
parentPrefabs don't draw into chunk if they don't intersect. (diff)
downloadcuberite-d61ff4da3b9b6581d22e2a1d068dfb09143b0ad6.tar
cuberite-d61ff4da3b9b6581d22e2a1d068dfb09143b0ad6.tar.gz
cuberite-d61ff4da3b9b6581d22e2a1d068dfb09143b0ad6.tar.bz2
cuberite-d61ff4da3b9b6581d22e2a1d068dfb09143b0ad6.tar.lz
cuberite-d61ff4da3b9b6581d22e2a1d068dfb09143b0ad6.tar.xz
cuberite-d61ff4da3b9b6581d22e2a1d068dfb09143b0ad6.tar.zst
cuberite-d61ff4da3b9b6581d22e2a1d068dfb09143b0ad6.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockLever.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Blocks/BlockLever.h b/src/Blocks/BlockLever.h
index ad2ae29e5..f1d3ff6d2 100644
--- a/src/Blocks/BlockLever.h
+++ b/src/Blocks/BlockLever.h
@@ -7,12 +7,13 @@
class cBlockLeverHandler :
- public cMetaRotator<cBlockHandler, 0x07, 0x04, 0x02, 0x03, 0x01, false>
+ public cMetaRotator<cBlockHandler, 0x07, 0x04, 0x01, 0x03, 0x02, false>
{
- typedef cMetaRotator<cBlockHandler, 0x07, 0x04, 0x02, 0x03, 0x01, false> super;
+ typedef cMetaRotator<cBlockHandler, 0x07, 0x04, 0x01, 0x03, 0x02, false> super;
+
public:
- cBlockLeverHandler(BLOCKTYPE a_BlockType)
- : cMetaRotator<cBlockHandler, 0x07, 0x04, 0x02, 0x03, 0x01, false>(a_BlockType)
+ cBlockLeverHandler(BLOCKTYPE a_BlockType) :
+ super(a_BlockType)
{
}
@@ -132,7 +133,7 @@ public:
case 0x05: return 0x06; // Ground rotation
case 0x06: return 0x05;
- default: return super::MetaRotateCCW(a_Meta); // Wall Rotation
+ default: return super::MetaRotateCW(a_Meta); // Wall Rotation
}
}
} ;