diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-06 22:56:12 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-06 22:56:12 +0100 |
commit | 944dec3a4e26e72e6d6760e7e8b081ba8476b126 (patch) | |
tree | 37351966763220d8debe7b4752e3dbf332db9449 | |
parent | ChunkSender won't send NULL packets anymore (diff) | |
download | cuberite-944dec3a4e26e72e6d6760e7e8b081ba8476b126.tar cuberite-944dec3a4e26e72e6d6760e7e8b081ba8476b126.tar.gz cuberite-944dec3a4e26e72e6d6760e7e8b081ba8476b126.tar.bz2 cuberite-944dec3a4e26e72e6d6760e7e8b081ba8476b126.tar.lz cuberite-944dec3a4e26e72e6d6760e7e8b081ba8476b126.tar.xz cuberite-944dec3a4e26e72e6d6760e7e8b081ba8476b126.tar.zst cuberite-944dec3a4e26e72e6d6760e7e8b081ba8476b126.zip |
-rw-r--r-- | source/cRedstone.h | 6 |
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 );
|