summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockButton.h
diff options
context:
space:
mode:
authorAlexandre Guertin <alexandreguertin.dev@gmail.com>2015-03-09 23:13:55 +0100
committerAlexandre Guertin <alexandreguertin.dev@gmail.com>2015-03-09 23:13:55 +0100
commitadf5edc913c777c85684a6d5d16abfd03eb81382 (patch)
tree874e198c30f403676b667618ebae6d00cc3de3c2 /src/Blocks/BlockButton.h
parentMerge pull request #1794 from mc-server/MesaPlateauF (diff)
downloadcuberite-adf5edc913c777c85684a6d5d16abfd03eb81382.tar
cuberite-adf5edc913c777c85684a6d5d16abfd03eb81382.tar.gz
cuberite-adf5edc913c777c85684a6d5d16abfd03eb81382.tar.bz2
cuberite-adf5edc913c777c85684a6d5d16abfd03eb81382.tar.lz
cuberite-adf5edc913c777c85684a6d5d16abfd03eb81382.tar.xz
cuberite-adf5edc913c777c85684a6d5d16abfd03eb81382.tar.zst
cuberite-adf5edc913c777c85684a6d5d16abfd03eb81382.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockButton.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Blocks/BlockButton.h b/src/Blocks/BlockButton.h
index 8e4f04740..682fb52e9 100644
--- a/src/Blocks/BlockButton.h
+++ b/src/Blocks/BlockButton.h
@@ -61,14 +61,16 @@ public:
{
switch (a_BlockFace)
{
+ case BLOCK_FACE_YP: return 0x6;
case BLOCK_FACE_ZM: return 0x4;
case BLOCK_FACE_ZP: return 0x3;
case BLOCK_FACE_XM: return 0x2;
case BLOCK_FACE_XP: return 0x1;
+ case BLOCK_FACE_YM: return 0x0;
default:
{
ASSERT(!"Unhandled block face!");
- return 0x0; // No idea, give a special meta (button in centre of block)
+ return 0x0;
}
}
}
@@ -81,6 +83,10 @@ public:
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;
default:
{
ASSERT(!"Unhandled block meta!");