Program: 134194
Project: 134194
Buggy source:
public void progress(){
  if (shiftCounter > 0 && type == AbilityType.SHIFT) {
    remove();
    return;
  }
 else   if (removing)   return;
 else   if (player.isDead() || !player.isOnline()) {
    remove();
    return;
  }
  double removeDelay=AvatarState.isAvatarState(player) ? AS_SHIFT_REMOVE_DELAY : SHIFT_REMOVE_DELAY;
  if (System.currentTimeMillis() - time > removeDelay) {
    remove();
    return;
  }
  if (type == AbilityType.SHIFT) {
    if (!player.isSneaking() && !removing) {
      if (affectedBlocks.size() > 0) {
        removeOnDelay();
        removing=true;
        long cooldown=AvatarState.isAvatarState(player) ? AS_SHIFT_COOLDOWN : SHIFT_COOLDOWN;
        bplayer.addCooldown("String_Node_Str",cooldown);
      }
 else       remove();
      return;
    }
    String ability=Methods.getBoundAbility(player);
    if (ability == null) {
      remove();
      return;
    }
 else     if (!ability.equalsIgnoreCase("String_Node_Str") || !Methods.canBend(player.getName(),"String_Node_Str")) {
      remove();
      return;
    }
 else     if (origin == null) {
      origin=player.getLocation().clone().add(0,-1,0);
      if (!Methods.isEarthbendable(player,origin.getBlock()) && origin.getBlock().getType() != Material.GLOWSTONE) {
        remove();
        return;
      }
    }
    double platformRadius=AvatarState.isAvatarState(player) ? AS_SHIFT_PLATFORM_RADIUS : SHIFT_PLATFORM_RADIUS;
    double maxRadius=AvatarState.isAvatarState(player) ? AS_SHIFT_MAX_RADIUS : SHIFT_MAX_RADIUS;
    double flowSpeed=AvatarState.isAvatarState(player) ? AS_SHIFT_FLOW_SPEED : SHIFT_FLOW_SPEED;
    for (double x=-currentRadius; x <= currentRadius + PARTICLE_OFFSET; x++)     for (double z=-currentRadius; z < currentRadius + PARTICLE_OFFSET; z++) {
      Location loc=origin.clone().add(x,0,z);
      Block block=getTopBlock(loc,UPWARD_FLOW,DOWNWARD_FLOW);
      if (block == null)       continue;
      double dSquared=distanceSquaredXZ(block.getLocation(),origin);
      if (!isLava(block) && dSquared > Math.pow(platformRadius,2)) {
        if (dSquared < Math.pow(currentRadius,2) && !Methods.isRegionProtectedFromBuild(player,"String_Node_Str",block.getLocation())) {
          if (dSquared < platformRadius * 4 || getAdjacentLavaBlocks(block.getLocation()).size() > 0)           createLava(block);
        }
 else         if (Math.random() < PARTICLE_DENSITY && dSquared < Math.pow(currentRadius + PARTICLE_OFFSET,2) && currentRadius + PARTICLE_OFFSET < maxRadius)         ParticleEffect.LAVA.display(loc,(float)Math.random(),(float)Math.random(),(float)Math.random(),0,1);
      }
    }
    currentRadius+=flowSpeed;
    if (currentRadius > maxRadius)     currentRadius=maxRadius;
  }
 else   if (type == AbilityType.CLICK) {
    long curTime=System.currentTimeMillis() - time;
    double delay;
    if (AvatarState.isAvatarState(player))     delay=makeLava ? AS_CLICK_LAVA_DELAY : AS_CLICK_LAND_DELAY;
 else     delay=makeLava ? CLICK_LAVA_DELAY : CLICK_LAND_DELAY;
    if (makeLava && curTime > CLICK_LAVA_CLEANUP_DELAY) {
      remove();
      return;
    }
 else     if (!makeLava && curTime > CLICK_LAND_CLEANUP_DELAY) {
      remove();
      return;
    }
 else     if (!makeLava && curTime < delay)     return;
 else     if (makeLava && curTime < delay) {
      double radius=AvatarState.isAvatarState(player) ? AS_CLICK_RADIUS : CLICK_LAVA_RADIUS;
      for (double x=-radius; x <= radius; x++)       for (double z=-radius; z <= radius; z++) {
        Location loc=origin.clone().add(x,0,z);
        Block tempBlock=getTopBlock(loc,UPWARD_FLOW,DOWNWARD_FLOW);
        if (tempBlock != null && !isLava(tempBlock) && Math.random() < PARTICLE_DENSITY && tempBlock.getLocation().distanceSquared(origin) <= Math.pow(radius,2))         ParticleEffect.LAVA.display(loc,0,0,0,0,1);
      }
      return;
    }
    if (!clickIsFinished) {
      clickIsFinished=true;
      double radius=makeLava ? CLICK_LAVA_RADIUS : CLICK_LAND_RADIUS;
      radius=AvatarState.isAvatarState(player) ? AS_CLICK_RADIUS : radius;
      for (double x=-radius; x <= radius; x++)       for (double z=-radius; z <= radius; z++) {
        Location loc=origin.clone().add(x,0,z);
        Block tempBlock=getTopBlock(loc,UPWARD_FLOW,DOWNWARD_FLOW);
        if (tempBlock == null)         continue;
        double dSquared=distanceSquaredXZ(tempBlock.getLocation(),origin);
        if (dSquared < Math.pow(radius,2) && !Methods.isRegionProtectedFromBuild(player,"String_Node_Str",loc)) {
          if (makeLava && !isLava(tempBlock)) {
            clickIsFinished=false;
            if (Math.random() < LAVA_CREATE_SPEED)             createLava(tempBlock);
 else             ParticleEffect.LAVA.display(loc,0,0,0,0,1);
          }
 else           if (!makeLava && isLava(tempBlock)) {
            clickIsFinished=false;
            if (Math.random() < LAND_CREATE_SPEED)             removeLava(tempBlock);
          }
        }
      }
      return;
    }
  }
}

Fixed version (ground truth):
public void progress(){
  if (shiftCounter > 0 && type == AbilityType.SHIFT) {
    remove();
    return;
  }
 else   if (removing)   return;
 else   if (player.isDead() || !player.isOnline()) {
    remove();
    return;
  }
  if (type == AbilityType.SHIFT) {
    double removeDelay=AvatarState.isAvatarState(player) ? AS_SHIFT_REMOVE_DELAY : SHIFT_REMOVE_DELAY;
    if (System.currentTimeMillis() - time > removeDelay) {
      remove();
      return;
    }
    if (!player.isSneaking() && !removing) {
      if (affectedBlocks.size() > 0) {
        removeOnDelay();
        removing=true;
        long cooldown=AvatarState.isAvatarState(player) ? AS_SHIFT_COOLDOWN : SHIFT_COOLDOWN;
        bplayer.addCooldown("String_Node_Str",cooldown);
      }
 else       remove();
      return;
    }
    String ability=Methods.getBoundAbility(player);
    if (ability == null) {
      remove();
      return;
    }
 else     if (!ability.equalsIgnoreCase("String_Node_Str") || !Methods.canBend(player.getName(),"String_Node_Str")) {
      remove();
      return;
    }
 else     if (origin == null) {
      origin=player.getLocation().clone().add(0,-1,0);
      if (!Methods.isEarthbendable(player,origin.getBlock()) && origin.getBlock().getType() != Material.GLOWSTONE) {
        remove();
        return;
      }
    }
    double platformRadius=AvatarState.isAvatarState(player) ? AS_SHIFT_PLATFORM_RADIUS : SHIFT_PLATFORM_RADIUS;
    double maxRadius=AvatarState.isAvatarState(player) ? AS_SHIFT_MAX_RADIUS : SHIFT_MAX_RADIUS;
    double flowSpeed=AvatarState.isAvatarState(player) ? AS_SHIFT_FLOW_SPEED : SHIFT_FLOW_SPEED;
    for (double x=-currentRadius; x <= currentRadius + PARTICLE_OFFSET; x++)     for (double z=-currentRadius; z < currentRadius + PARTICLE_OFFSET; z++) {
      Location loc=origin.clone().add(x,0,z);
      Block block=getTopBlock(loc,UPWARD_FLOW,DOWNWARD_FLOW);
      if (block == null)       continue;
      double dSquared=distanceSquaredXZ(block.getLocation(),origin);
      if (!isLava(block) && dSquared > Math.pow(platformRadius,2)) {
        if (dSquared < Math.pow(currentRadius,2) && !Methods.isRegionProtectedFromBuild(player,"String_Node_Str",block.getLocation())) {
          if (dSquared < platformRadius * 4 || getAdjacentLavaBlocks(block.getLocation()).size() > 0)           createLava(block);
        }
 else         if (Math.random() < PARTICLE_DENSITY && dSquared < Math.pow(currentRadius + PARTICLE_OFFSET,2) && currentRadius + PARTICLE_OFFSET < maxRadius)         ParticleEffect.LAVA.display(loc,(float)Math.random(),(float)Math.random(),(float)Math.random(),0,1);
      }
    }
    currentRadius+=flowSpeed;
    if (currentRadius > maxRadius)     currentRadius=maxRadius;
  }
 else   if (type == AbilityType.CLICK) {
    long curTime=System.currentTimeMillis() - time;
    double delay;
    if (AvatarState.isAvatarState(player))     delay=makeLava ? AS_CLICK_LAVA_DELAY : AS_CLICK_LAND_DELAY;
 else     delay=makeLava ? CLICK_LAVA_DELAY : CLICK_LAND_DELAY;
    if (makeLava && curTime > CLICK_LAVA_CLEANUP_DELAY) {
      remove();
      return;
    }
 else     if (!makeLava && curTime > CLICK_LAND_CLEANUP_DELAY) {
      remove();
      return;
    }
 else     if (!makeLava && curTime < delay)     return;
 else     if (makeLava && curTime < delay) {
      double radius=AvatarState.isAvatarState(player) ? AS_CLICK_RADIUS : CLICK_LAVA_RADIUS;
      for (double x=-radius; x <= radius; x++)       for (double z=-radius; z <= radius; z++) {
        Location loc=origin.clone().add(x,0,z);
        Block tempBlock=getTopBlock(loc,UPWARD_FLOW,DOWNWARD_FLOW);
        if (tempBlock != null && !isLava(tempBlock) && Math.random() < PARTICLE_DENSITY && tempBlock.getLocation().distanceSquared(origin) <= Math.pow(radius,2))         ParticleEffect.LAVA.display(loc,0,0,0,0,1);
      }
      return;
    }
    if (!clickIsFinished) {
      clickIsFinished=true;
      double radius=makeLava ? CLICK_LAVA_RADIUS : CLICK_LAND_RADIUS;
      radius=AvatarState.isAvatarState(player) ? AS_CLICK_RADIUS : radius;
      for (double x=-radius; x <= radius; x++)       for (double z=-radius; z <= radius; z++) {
        Location loc=origin.clone().add(x,0,z);
        Block tempBlock=getTopBlock(loc,UPWARD_FLOW,DOWNWARD_FLOW);
        if (tempBlock == null)         continue;
        double dSquared=distanceSquaredXZ(tempBlock.getLocation(),origin);
        if (dSquared < Math.pow(radius,2) && !Methods.isRegionProtectedFromBuild(player,"String_Node_Str",loc)) {
          if (makeLava && !isLava(tempBlock)) {
            clickIsFinished=false;
            if (Math.random() < LAVA_CREATE_SPEED)             createLava(tempBlock);
 else             ParticleEffect.LAVA.display(loc,0,0,0,0,1);
          }
 else           if (!makeLava && isLava(tempBlock)) {
            clickIsFinished=false;
            if (Math.random() < LAND_CREATE_SPEED)             removeLava(tempBlock);
          }
        }
      }
      return;
    }
  }
}