Program: 133973
Project: 133973
Buggy source:
public EarthSmash(Player player,ClickType type){
  if (!GeneralMethods.hasPermission(player,"String_Node_Str"))   return;
  this.player=player;
  bplayer=GeneralMethods.getBendingPlayer(player.getName());
  this.time=System.currentTimeMillis();
  if (type == ClickType.SHIFT_DOWN || type == ClickType.SHIFT_UP && !player.isSneaking()) {
    selectRange=SELECT_RANGE;
    chargeTime=CHARGE_TIME;
    cooldown=MAIN_COOLDOWN;
    damage=SHOOTING_DAMAGE;
    knockback=KNOCKBACK_POWER;
    knockup=KNOCKUP_POWER;
    flySpeed=FLYING_PLAYER_SPEED;
    flightRemove=FLYING_REMOVE_TIMER;
    shootRange=TRAVEL_RANGE;
    if (AvatarState.isAvatarState(player)) {
      selectRange=AvatarState.getValue(selectRange);
      chargeTime=0;
      cooldown=0;
      damage=AvatarState.getValue(damage);
      knockback=AvatarState.getValue(knockback);
      knockup=AvatarState.getValue(knockup);
      flySpeed=AvatarState.getValue(flySpeed);
      flightRemove=Integer.MAX_VALUE;
      shootRange=AvatarState.getValue(shootRange);
    }
    EarthSmash flySmash=flyingInSmashCheck(player);
    if (flySmash != null) {
      flySmash.state=State.FLYING;
      flySmash.player=player;
      flySmash.flightStart=System.currentTimeMillis();
      return;
    }
    EarthSmash grabbedSmash=aimingAtSmashCheck(player,null);
    if (grabbedSmash == null) {
      if (bplayer.isOnCooldown("String_Node_Str")) {
        return;
      }
      grabbedSmash=aimingAtSmashCheck(player,State.SHOT);
    }
    if (grabbedSmash != null && grabbedSmash.state == State.LIFTED) {
      grabbedSmash.state=State.GRABBED;
      grabbedSmash.grabbedRange=grabbedSmash.loc.distance(player.getEyeLocation());
      grabbedSmash.player=player;
      return;
    }
  }
 else   if (type == ClickType.LEFT_CLICK && player.isSneaking()) {
    for (    EarthSmash smash : instances) {
      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.loc.getWorld().playEffect(smash.loc,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.loc.clone().add(0,2,0));
      grabbedSmash.state=State.FLYING;
      grabbedSmash.player=player;
      grabbedSmash.flightStart=System.currentTimeMillis();
    }
    return;
  }
 else {
    return;
  }
  instances.add(this);
}

Fixed version (ground truth):
public EarthSmash(Player player,ClickType type){
  if (!GeneralMethods.hasPermission(player,"String_Node_Str"))   return;
  this.player=player;
  bplayer=GeneralMethods.getBendingPlayer(player.getName());
  this.time=System.currentTimeMillis();
  if (type == ClickType.SHIFT_DOWN || type == ClickType.SHIFT_UP && !player.isSneaking()) {
    selectRange=SELECT_RANGE;
    chargeTime=CHARGE_TIME;
    cooldown=MAIN_COOLDOWN;
    damage=SHOOTING_DAMAGE;
    knockback=KNOCKBACK_POWER;
    knockup=KNOCKUP_POWER;
    flySpeed=FLYING_PLAYER_SPEED;
    flightRemove=FLYING_REMOVE_TIMER;
    shootRange=TRAVEL_RANGE;
    if (AvatarState.isAvatarState(player)) {
      selectRange=AvatarState.getValue(selectRange);
      chargeTime=0;
      cooldown=0;
      damage=AvatarState.getValue(damage);
      knockback=AvatarState.getValue(knockback);
      knockup=AvatarState.getValue(knockup);
      flySpeed=AvatarState.getValue(flySpeed);
      flightRemove=Integer.MAX_VALUE;
      shootRange=AvatarState.getValue(shootRange);
      GRAB_DETECTION_RADIUS=AvatarState.getValue(shootRange);
    }
    EarthSmash flySmash=flyingInSmashCheck(player);
    if (flySmash != null) {
      flySmash.state=State.FLYING;
      flySmash.player=player;
      flySmash.flightStart=System.currentTimeMillis();
      return;
    }
    EarthSmash grabbedSmash=aimingAtSmashCheck(player,null);
    if (grabbedSmash == null) {
      grabbedSmash=aimingAtSmashCheck(player,State.SHOT);
    }
 else     if (grabbedSmash != null && grabbedSmash.state == State.LIFTED) {
      grabbedSmash.state=State.GRABBED;
      grabbedSmash.grabbedRange=grabbedSmash.loc.distance(player.getEyeLocation());
      grabbedSmash.player=player;
      return;
    }
 else     if (grabbedSmash != null && grabbedSmash.state == State.SHOT && grabbedSmash.player != player && grabbedSmash == aimingAtSmashCheck(player,State.SHOT)) {
      grabbedSmash.state=State.GRABBED;
      grabbedSmash.grabbedRange=grabbedSmash.loc.distance(player.getEyeLocation());
      grabbedSmash.player=player;
      return;
    }
  }
 else   if (type == ClickType.LEFT_CLICK && player.isSneaking()) {
    for (    EarthSmash smash : instances) {
      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.loc.getWorld().playEffect(smash.loc,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.loc.clone().add(0,2,0));
      grabbedSmash.state=State.FLYING;
      grabbedSmash.player=player;
      grabbedSmash.flightStart=System.currentTimeMillis();
    }
    return;
  }
 else {
    return;
  }
  instances.add(this);
}