ActionResultType in onActivated

This commit is contained in:
Sebastian Hartte
2020-06-02 19:15:23 +02:00
parent 3e78c713d1
commit cf9ab8a13b
42 changed files with 135 additions and 181 deletions
@@ -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;