Call super#onBlockActivated() for wrench interaction

This commit is contained in:
xsun2001 2017-08-08 08:57:45 +08:00
parent 563d902ff9
commit df1d373f60
3 changed files with 6 additions and 9 deletions

View File

@ -94,7 +94,7 @@ public class BlockCraftingUnit extends AEBaseTileBlock
return true;
}
return false;
return super.onBlockActivated( w, x, y, z, p, side, hitX, hitY, hitZ );
}
@Override

View File

@ -79,7 +79,7 @@ public class BlockMolecularAssembler extends AEBaseTileBlock
Platform.openGUI( p, tg, ForgeDirection.getOrientation( side ), GuiBridge.GUI_MAC );
return true;
}
return false;
return super.onBlockActivated( w, x, y, z, p, side, hitX, hitY, hitZ );
}
public static boolean isBooleanAlphaPass()

View File

@ -63,13 +63,9 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
@Override
public boolean onActivated( final World w, final int x, final int y, final int z, final EntityPlayer p, final int side, final float hitX, final float hitY, final float hitZ )
{
if( p.isSneaking() )
{
return false;
}
final TileWireless tg = this.getTileEntity( w, x, y, z );
if( tg != null )
if( tg != null && !p.isSneaking() )
{
if( Platform.isServer() )
{
@ -77,7 +73,8 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
}
return true;
}
return false;
return super.onBlockActivated( w, x, y, z, p, side, hitX, hitY, hitZ );
}
@Override