Program: 133851
Project: 133851
Buggy source:
public EarthSmash(Player player,ClickType type){
  super(player);
  this.state=State.START;
  this.requiredBendableBlocks=getConfig().getInt("String_Node_Str");
  this.maxBlocksToPassThrough=getConfig().getInt("String_Node_Str");
  this.shootAnimationInterval=getConfig().getLong("String_Node_Str");
  this.flightAnimationInterval=getConfig().getLong("String_Node_Str");
  this.liftAnimationInterval=getConfig().getLong("String_Node_Str");
  this.grabDetectionRadius=getConfig().getDouble("String_Node_Str");
  this.flightDetectionRadius=getConfig().getDouble("String_Node_Str");
  this.allowGrab=getConfig().getBoolean("String_Node_Str");
  this.allowFlight=getConfig().getBoolean("String_Node_Str");
  this.selectRange=getConfig().getDouble("String_Node_Str");
  this.grabRange=getConfig().getDouble("String_Node_Str");
  this.shootRange=getConfig().getDouble("String_Node_Str");
  this.damage=getConfig().getDouble("String_Node_Str");
  this.knockback=getConfig().getDouble("String_Node_Str");
  this.knockup=getConfig().getDouble("String_Node_Str");
  this.flightSpeed=getConfig().getDouble("String_Node_Str");
  this.chargeTime=getConfig().getLong("String_Node_Str");
  this.cooldown=getConfig().getLong("String_Node_Str");
  this.flightRemoveTimer=getConfig().getLong("String_Node_Str");
  this.removeTimer=getConfig().getLong("String_Node_Str");
  this.affectedEntities=new ArrayList<>();
  this.currentBlocks=new ArrayList<>();
  this.affectedBlocks=new ArrayList<>();
  if (type == ClickType.SHIFT_DOWN || type == ClickType.SHIFT_UP && !player.isSneaking()) {
    if (bPlayer.isAvatarState()) {
      selectRange=AvatarState.getValue(selectRange);
      grabRange=AvatarState.getValue(grabRange);
      chargeTime=0;
      cooldown=0;
      damage=AvatarState.getValue(damage);
      knockback=AvatarState.getValue(knockback);
      knockup=AvatarState.getValue(knockup);
      flightSpeed=AvatarState.getValue(flightSpeed);
      flightRemoveTimer=Integer.MAX_VALUE;
      shootRange=AvatarState.getValue(shootRange);
    }
    EarthSmash flySmash=flyingInSmashCheck(player);
    if (flySmash != null) {
      flySmash.state=State.FLYING;
      flySmash.player=player;
      flySmash.flightStartTime=System.currentTimeMillis();
      return;
    }
    EarthSmash grabbedSmash=aimingAtSmashCheck(player,State.LIFTED);
    if (grabbedSmash == null) {
      if (bPlayer.isOnCooldown(this)) {
        return;
      }
      grabbedSmash=aimingAtSmashCheck(player,State.SHOT);
    }
    if (grabbedSmash != null) {
      grabbedSmash.state=State.GRABBED;
      grabbedSmash.grabbedDistance=grabbedSmash.location.distance(player.getEyeLocation());
      grabbedSmash.player=player;
      return;
    }
    start();
  }
 else   if (type == ClickType.LEFT_CLICK && player.isSneaking()) {
    for (    EarthSmash smash : getAbilities(EarthSmash.class)) {
      if (smash.state == State.GRABBED && smash.player == player) {
        smash.state=State.SHOT;
        smash.destination=player.getEyeLocation().clone().add(player.getEyeLocation().getDirection().normalize().multiply(smash.shootRange));
        smash.location.getWorld().playEffect(smash.location,Effect.GHAST_SHOOT,0,10);
      }
    }
    return;
  }
 else   if (type == ClickType.RIGHT_CLICK && player.isSneaking()) {
    EarthSmash grabbedSmash=aimingAtSmashCheck(player,State.GRABBED);
    if (grabbedSmash != null) {
      player.teleport(grabbedSmash.location.clone().add(0,2,0));
      grabbedSmash.state=State.FLYING;
      grabbedSmash.player=player;
      grabbedSmash.flightStartTime=System.currentTimeMillis();
    }
    return;
  }
}

Fixed version (ground truth):
public EarthSmash(Player player,ClickType type){
  super(player);
  this.state=State.START;
  this.requiredBendableBlocks=getConfig().getInt("String_Node_Str");
  this.maxBlocksToPassThrough=getConfig().getInt("String_Node_Str");
  this.shootAnimationInterval=getConfig().getLong("String_Node_Str");
  this.flightAnimationInterval=getConfig().getLong("String_Node_Str");
  this.liftAnimationInterval=getConfig().getLong("String_Node_Str");
  this.grabDetectionRadius=getConfig().getDouble("String_Node_Str");
  this.flightDetectionRadius=getConfig().getDouble("String_Node_Str");
  this.allowGrab=getConfig().getBoolean("String_Node_Str");
  this.allowFlight=getConfig().getBoolean("String_Node_Str");
  this.selectRange=getConfig().getDouble("String_Node_Str");
  this.grabRange=getConfig().getDouble("String_Node_Str");
  this.shootRange=getConfig().getDouble("String_Node_Str");
  this.damage=getConfig().getDouble("String_Node_Str");
  this.knockback=getConfig().getDouble("String_Node_Str");
  this.knockup=getConfig().getDouble("String_Node_Str");
  this.flightSpeed=getConfig().getDouble("String_Node_Str");
  this.chargeTime=getConfig().getLong("String_Node_Str");
  this.cooldown=getConfig().getLong("String_Node_Str");
  this.flightRemoveTimer=getConfig().getLong("String_Node_Str");
  this.removeTimer=getConfig().getLong("String_Node_Str");
  this.affectedEntities=new ArrayList<>();
  this.currentBlocks=new ArrayList<>();
  this.affectedBlocks=new ArrayList<>();
  if (type == ClickType.SHIFT_DOWN || type == ClickType.SHIFT_UP && !player.isSneaking()) {
    if (bPlayer.isAvatarState()) {
      selectRange=AvatarState.getValue(selectRange);
      grabRange=AvatarState.getValue(grabRange);
      chargeTime=0;
      cooldown=0;
      damage=AvatarState.getValue(damage);
      knockback=AvatarState.getValue(knockback);
      knockup=AvatarState.getValue(knockup);
      flightSpeed=AvatarState.getValue(flightSpeed);
      flightRemoveTimer=Integer.MAX_VALUE;
      shootRange=AvatarState.getValue(shootRange);
    }
    EarthSmash flySmash=flyingInSmashCheck(player);
    if (flySmash != null) {
      flySmash.state=State.FLYING;
      flySmash.player=player;
      flySmash.flightStartTime=System.currentTimeMillis();
      return;
    }
    EarthSmash grabbedSmash=aimingAtSmashCheck(player,State.LIFTED);
    if (grabbedSmash == null) {
      if (bPlayer.isOnCooldown(this)) {
        return;
      }
      grabbedSmash=aimingAtSmashCheck(player,State.SHOT);
    }
    if (grabbedSmash != null) {
      grabbedSmash.state=State.GRABBED;
      grabbedSmash.grabbedDistance=0;
      if (grabbedSmash.location.getWorld().equals(player.getWorld())) {
        grabbedSmash.grabbedDistance=grabbedSmash.location.distance(player.getEyeLocation());
      }
      grabbedSmash.player=player;
      return;
    }
    start();
  }
 else   if (type == ClickType.LEFT_CLICK && player.isSneaking()) {
    for (    EarthSmash smash : getAbilities(EarthSmash.class)) {
      if (smash.state == State.GRABBED && smash.player == player) {
        smash.state=State.SHOT;
        smash.destination=player.getEyeLocation().clone().add(player.getEyeLocation().getDirection().normalize().multiply(smash.shootRange));
        smash.location.getWorld().playEffect(smash.location,Effect.GHAST_SHOOT,0,10);
      }
    }
    return;
  }
 else   if (type == ClickType.RIGHT_CLICK && player.isSneaking()) {
    EarthSmash grabbedSmash=aimingAtSmashCheck(player,State.GRABBED);
    if (grabbedSmash != null) {
      player.teleport(grabbedSmash.location.clone().add(0,2,0));
      grabbedSmash.state=State.FLYING;
      grabbedSmash.player=player;
      grabbedSmash.flightStartTime=System.currentTimeMillis();
    }
    return;
  }
}