Fixes #2713: Call super#onBlockActivated() for wrench interaction. (#2728)

This commit is contained in:
yueh
2016-12-31 16:00:45 +01:00
committed by Gunther De Wachter
parent c4b4a257f3
commit af85a2bf67
3 changed files with 8 additions and 9 deletions
@@ -110,13 +110,9 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
@Override
public boolean onBlockActivated( final World w, final BlockPos pos, final IBlockState state, final EntityPlayer player, final EnumHand hand, final EnumFacing side, final float hitX, final float hitY, final float hitZ )
{
if( player.isSneaking() )
{
return false;
}
final TileWireless tg = this.getTileEntity( w, pos );
if( tg != null )
if( tg != null && !player.isSneaking() )
{
if( Platform.isServer() )
{
@@ -124,7 +120,8 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
}
return true;
}
return false;
return super.onBlockActivated( w, pos, state, player, hand, heldItem, side, hitX, hitY, hitZ );
}
@Override