summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPiston.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockPiston.h')
-rw-r--r--src/Blocks/BlockPiston.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockPiston.h b/src/Blocks/BlockPiston.h
index e0066e8ab..6a384b85d 100644
--- a/src/Blocks/BlockPiston.h
+++ b/src/Blocks/BlockPiston.h
@@ -65,7 +65,7 @@ public:
static eBlockFace MetaDataToDirection(NIBBLETYPE a_MetaData)
{
- switch (a_MetaData)
+ switch (a_MetaData & 0x7) // We only want the bottom three bits (4th controls extended-ness))
{
case 0x0: return BLOCK_FACE_YM;
case 0x1: return BLOCK_FACE_YP;