summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandre Guertin <alexandreguertin.dev@gmail.com>2015-03-25 21:12:02 +0100
committerAlexandre Guertin <alexandreguertin.dev@gmail.com>2015-03-25 21:12:02 +0100
commit97daf810ff6bf1e1b5024cbb9644e246e72d3d76 (patch)
treef75df50d6282f42a99d43b203da51b5b4a320d96 /src
parentButtons can be placed on the top and on the bottom face of a block (diff)
downloadcuberite-97daf810ff6bf1e1b5024cbb9644e246e72d3d76.tar
cuberite-97daf810ff6bf1e1b5024cbb9644e246e72d3d76.tar.gz
cuberite-97daf810ff6bf1e1b5024cbb9644e246e72d3d76.tar.bz2
cuberite-97daf810ff6bf1e1b5024cbb9644e246e72d3d76.tar.lz
cuberite-97daf810ff6bf1e1b5024cbb9644e246e72d3d76.tar.xz
cuberite-97daf810ff6bf1e1b5024cbb9644e246e72d3d76.tar.zst
cuberite-97daf810ff6bf1e1b5024cbb9644e246e72d3d76.zip
Diffstat (limited to 'src')
-rw-r--r--src/Blocks/BlockButton.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Blocks/BlockButton.h b/src/Blocks/BlockButton.h
index 682fb52e9..d24c7d952 100644
--- a/src/Blocks/BlockButton.h
+++ b/src/Blocks/BlockButton.h
@@ -61,7 +61,7 @@ public:
{
switch (a_BlockFace)
{
- case BLOCK_FACE_YP: return 0x6;
+ case BLOCK_FACE_YP: return 0x5;
case BLOCK_FACE_ZM: return 0x4;
case BLOCK_FACE_ZP: return 0x3;
case BLOCK_FACE_XM: return 0x2;
@@ -79,14 +79,12 @@ public:
{
switch (a_Meta & 0x7)
{
+ case 0x0: return BLOCK_FACE_YM;
case 0x1: return BLOCK_FACE_XP;
case 0x2: return BLOCK_FACE_XM;
case 0x3: return BLOCK_FACE_ZP;
case 0x4: return BLOCK_FACE_ZM;
- case 0x5:
- case 0x6: return BLOCK_FACE_YP;
- case 0x7:
- case 0x0: return BLOCK_FACE_YM;
+ case 0x5: return BLOCK_FACE_YP;
default:
{
ASSERT(!"Unhandled block meta!");