ActionResultType in onActivated
This commit is contained in:
@@ -146,7 +146,7 @@ public class BlockCraftingUnit extends AEBaseTileBlock
|
||||
{
|
||||
final TileCraftingTile tg = this.getTileEntity( w, pos );
|
||||
|
||||
if( tg != null && !p.isShiftKeyDown() && tg.isFormed() && tg.isActive() )
|
||||
if( tg != null && !p.isCrouching() && tg.isFormed() && tg.isActive() )
|
||||
{
|
||||
if( Platform.isClient() )
|
||||
{
|
||||
|
||||
@@ -100,7 +100,7 @@ public class BlockMolecularAssembler extends AEBaseTileBlock
|
||||
public boolean onBlockActivated( final World w, final BlockPos pos, final BlockState state, final PlayerEntity p, final Hand hand, final Direction side, final float hitX, final float hitY, final float hitZ )
|
||||
{
|
||||
final TileMolecularAssembler tg = this.getTileEntity( w, pos );
|
||||
if( tg != null && !p.isShiftKeyDown() )
|
||||
if( tg != null && !p.isCrouching() )
|
||||
{
|
||||
Platform.openGUI( p, tg, AEPartLocation.fromFacing( side ), GuiBridge.GUI_MAC );
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user