This commit is contained in:
@@ -146,6 +146,7 @@ public class BlockCraftingUnit extends AEBaseTileBlock
|
|||||||
public boolean onBlockActivated( final World w, final BlockPos pos, final IBlockState state, final EntityPlayer p, final EnumHand hand, final EnumFacing side, final float hitX, final float hitY, final float hitZ )
|
public boolean onBlockActivated( final World w, final BlockPos pos, final IBlockState state, final EntityPlayer p, final EnumHand hand, final EnumFacing side, final float hitX, final float hitY, final float hitZ )
|
||||||
{
|
{
|
||||||
final TileCraftingTile tg = this.getTileEntity( w, pos );
|
final TileCraftingTile tg = this.getTileEntity( w, pos );
|
||||||
|
|
||||||
if( tg != null && !p.isSneaking() && tg.isFormed() && tg.isActive() )
|
if( tg != null && !p.isSneaking() && tg.isFormed() && tg.isActive() )
|
||||||
{
|
{
|
||||||
if( Platform.isClient() )
|
if( Platform.isClient() )
|
||||||
@@ -157,7 +158,7 @@ public class BlockCraftingUnit extends AEBaseTileBlock
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return super.onBlockActivated( w, pos, state, p, hand, heldItem, side, hitX, hitY, hitZ );
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum CraftingUnitType
|
public enum CraftingUnitType
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ public class BlockMolecularAssembler extends AEBaseTileBlock
|
|||||||
Platform.openGUI( p, tg, AEPartLocation.fromFacing( side ), GuiBridge.GUI_MAC );
|
Platform.openGUI( p, tg, AEPartLocation.fromFacing( side ), GuiBridge.GUI_MAC );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
|
return super.onBlockActivated( w, pos, state, p, hand, heldItem, side, hitX, hitY, hitZ );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,13 +110,9 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
|
|||||||
@Override
|
@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 )
|
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 );
|
final TileWireless tg = this.getTileEntity( w, pos );
|
||||||
if( tg != null )
|
|
||||||
|
if( tg != null && !player.isSneaking() )
|
||||||
{
|
{
|
||||||
if( Platform.isServer() )
|
if( Platform.isServer() )
|
||||||
{
|
{
|
||||||
@@ -124,7 +120,8 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
|
return super.onBlockActivated( w, pos, state, player, hand, heldItem, side, hitX, hitY, hitZ );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user