summaryrefslogtreecommitdiffstats
path: root/source/cRedstone.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cRedstone.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cRedstone.h b/source/cRedstone.h
index 26e9a6319..5c971ad36 100644
--- a/source/cRedstone.h
+++ b/source/cRedstone.h
@@ -25,7 +25,7 @@ public:
static bool IsRepeaterPointingTo( const Vector3i & a_RepeaterPos, char a_MetaData, const Vector3i & a_BlockPos )
{
- switch( a_MetaData )
+ switch( a_MetaData & 0x3 )
{
case 0x0:
if( (a_RepeaterPos - a_BlockPos).Equals( Vector3i( 0, 0, 1 ) ) )
@@ -59,7 +59,7 @@ public:
static bool IsRepeaterPointingAway( const Vector3i & a_RepeaterPos, char a_MetaData, const Vector3i & a_BlockPos )
{
- switch( a_MetaData )
+ switch( a_MetaData & 0x3 )
{
case 0x0:
if( (a_RepeaterPos - a_BlockPos).Equals( Vector3i( 0, 0,-1 ) ) )
@@ -93,7 +93,7 @@ public:
static Vector3i GetRepeaterDirection( char a_MetaData )
{
- switch( a_MetaData )
+ switch( a_MetaData & 0x3 )
{
case 0x0:
return Vector3i( 0, 0,-1 );