1
0

Fixed redstone repeater bug where it could not get the direction when it has delay bits set

git-svn-id: http://mc-server.googlecode.com/svn/trunk@377 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth 2012-03-06 21:56:12 +00:00
parent 3d0eced7e7
commit 944dec3a4e

View File

@ -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 );