Fixes #2411: Use correct direction for compass location

This commit is contained in:
yueh 2016-10-03 16:11:07 +02:00
parent 2e6f15655c
commit f0e3c6eae9

View file

@ -81,8 +81,8 @@ public class BlockSkyCompass extends AEBaseTileBlock implements ICustomCollision
public void neighborChanged( final IBlockState state, final World w, final BlockPos pos, final Block neighborBlock ) public void neighborChanged( final IBlockState state, final World w, final BlockPos pos, final Block neighborBlock )
{ {
final TileSkyCompass sc = this.getTileEntity( w, pos ); final TileSkyCompass sc = this.getTileEntity( w, pos );
final EnumFacing up = sc.getUp(); final EnumFacing forward = sc.getForward();
if( !this.canPlaceAt( w, pos, up.getOpposite() ) ) if( !this.canPlaceAt( w, pos, forward.getOpposite() ) )
{ {
this.dropTorch( w, pos ); this.dropTorch( w, pos );
} }
@ -114,7 +114,7 @@ public class BlockSkyCompass extends AEBaseTileBlock implements ICustomCollision
final TileSkyCompass tile = this.getTileEntity( w, pos ); final TileSkyCompass tile = this.getTileEntity( w, pos );
if( tile != null ) if( tile != null )
{ {
final EnumFacing forward = tile.getUp(); final EnumFacing forward = tile.getForward();
double minX = 0; double minX = 0;
double minY = 0; double minY = 0;