Call super#onBlockActivated() for wrench interaction
This commit is contained in:
parent
563d902ff9
commit
df1d373f60
|
@ -94,7 +94,7 @@ public class BlockCraftingUnit extends AEBaseTileBlock
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return super.onBlockActivated( w, x, y, z, p, side, hitX, hitY, hitZ );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class BlockMolecularAssembler extends AEBaseTileBlock
|
||||||
Platform.openGUI( p, tg, ForgeDirection.getOrientation( side ), GuiBridge.GUI_MAC );
|
Platform.openGUI( p, tg, ForgeDirection.getOrientation( side ), GuiBridge.GUI_MAC );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return super.onBlockActivated( w, x, y, z, p, side, hitX, hitY, hitZ );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isBooleanAlphaPass()
|
public static boolean isBooleanAlphaPass()
|
||||||
|
|
|
@ -63,13 +63,9 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
|
||||||
@Override
|
@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 )
|
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 );
|
final TileWireless tg = this.getTileEntity( w, x, y, z );
|
||||||
if( tg != null )
|
|
||||||
|
if( tg != null && !p.isSneaking() )
|
||||||
{
|
{
|
||||||
if( Platform.isServer() )
|
if( Platform.isServer() )
|
||||||
{
|
{
|
||||||
|
@ -77,7 +73,8 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
|
return super.onBlockActivated( w, x, y, z, p, side, hitX, hitY, hitZ );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue