From 5b62c4c3145c08b093521e42c565922fa85de4ad Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 26 Jun 2015 17:24:51 -0500 Subject: Reorganised the redstone simulator -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved --- src/Blocks/BlockPiston.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Blocks/BlockPiston.h') 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; -- cgit v1.2.3