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
@@ -103,7 +103,7 @@ public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench
{
return ActionResultType.FAIL;
}
else if( context.getPlayer().isShiftKeyDown() )
else if( context.getPlayer().isCrouching() )
{
return ActionResultType.PASS;
}
@@ -138,7 +138,7 @@ public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench
}
final Block b = w.getBlockState( pos ).getBlock();
if( !p.isShiftKeyDown() )
if( !p.isCrouching() )
{
final TileEntity te = w.getTileEntity( pos );
if( !( te instanceof IGridHost ) )
@@ -152,7 +152,7 @@ public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench
}
}
if( !p.isShiftKeyDown() )
if( !p.isCrouching() )
{
if( p.openContainer instanceof AEBaseContainer )
{