Program: 58167
Project: 58167
Buggy source:
@Override public void run(){
  try {
    for (int y=0; y < 1; y++) {
      for (int x=pos1.getBlockX(); x <= pos2.getBlockX(); x++) {
        for (int z=pos1.getBlockZ(); z <= pos2.getBlockZ(); z++) {
          Block block=world.getBlockAt(x,y,z);
          if (!((block.getTypeId() == 7))) {
            SetBlockFast.set(world,x,y,z,7,(byte)7);
          }
        }
      }
    }
    for (int y=1; y < plotworld.PLOT_HEIGHT; y++) {
      for (int x=pos1.getBlockX(); x <= pos2.getBlockX(); x++) {
        for (int z=pos1.getBlockZ(); z <= pos2.getBlockZ(); z++) {
          int i=random(filling.length);
          short id=filling[i];
          byte d=(byte)filling_data[i];
          Block block=world.getBlockAt(x,y,z);
          if (!((block.getTypeId() == id && block.getData() == d))) {
            SetBlockFast.set(world,x,y,z,id,d);
          }
        }
      }
    }
    for (int y=plotworld.PLOT_HEIGHT; y < (plotworld.PLOT_HEIGHT + 1); y++) {
      for (int x=pos1.getBlockX(); x <= pos2.getBlockX(); x++) {
        for (int z=pos1.getBlockZ(); z <= pos2.getBlockZ(); z++) {
          int i=random(plotfloors.length);
          short id=plotfloors[i];
          byte d=(byte)plotfloors_data[i];
          Block block=world.getBlockAt(x,y,z);
          if (!((block.getTypeId() == id && block.getData() == d))) {
            SetBlockFast.set(world,x,y,z,id,d);
          }
        }
      }
    }
    for (int y=plotworld.PLOT_HEIGHT + 1; y < (world.getMaxHeight() + 1); y++) {
      for (int x=pos1.getBlockX(); x <= pos2.getBlockX(); x++) {
        for (int z=pos1.getBlockZ(); z <= pos2.getBlockZ(); z++) {
          Block block=world.getBlockAt(x,y,z);
          if (!((block.getTypeId() == 0))) {
            SetBlockFast.set(world,x,y,z,0,(byte)0);
          }
        }
      }
    }
    PlayerFunctions.sendMessage(requester,C.CLEARING_DONE.s().replaceAll("String_Node_Str","String_Node_Str" + ((System.nanoTime() - start) / 1000000.0)));
    SetBlockFast.update(requester);
    return;
  }
 catch (  Exception e) {
    PlayerFunctions.sendMessage(requester,C.PREFIX.s() + "String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void run(){
  try {
    for (int y=0; y < 1; y++) {
      for (int x=pos1.getBlockX(); x <= pos2.getBlockX(); x++) {
        for (int z=pos1.getBlockZ(); z <= pos2.getBlockZ(); z++) {
          Block block=world.getBlockAt(x,y,z);
          if (!((block.getTypeId() == 7))) {
            SetBlockFast.set(world,x,y,z,7,(byte)7);
          }
        }
      }
    }
    for (int y=1; y < plotworld.PLOT_HEIGHT; y++) {
      for (int x=pos1.getBlockX(); x <= pos2.getBlockX(); x++) {
        for (int z=pos1.getBlockZ(); z <= pos2.getBlockZ(); z++) {
          int i=random(filling.length);
          short id=filling[i];
          byte d=(byte)filling_data[i];
          Block block=world.getBlockAt(x,y,z);
          if (!((block.getTypeId() == id && block.getData() == d))) {
            SetBlockFast.set(world,x,y,z,id,d);
          }
        }
      }
    }
    for (int y=plotworld.PLOT_HEIGHT; y < (plotworld.PLOT_HEIGHT + 1); y++) {
      for (int x=pos1.getBlockX(); x <= pos2.getBlockX(); x++) {
        for (int z=pos1.getBlockZ(); z <= pos2.getBlockZ(); z++) {
          int i=random(plotfloors.length);
          short id=plotfloors[i];
          byte d=(byte)plotfloors_data[i];
          Block block=world.getBlockAt(x,y,z);
          if (!((block.getTypeId() == id && block.getData() == d))) {
            SetBlockFast.set(world,x,y,z,id,d);
          }
        }
      }
    }
    for (int y=plotworld.PLOT_HEIGHT + 1; y < (world.getMaxHeight() + 1); y++) {
      for (int x=pos1.getBlockX(); x <= pos2.getBlockX(); x++) {
        for (int z=pos1.getBlockZ(); z <= pos2.getBlockZ(); z++) {
          Block block=world.getBlockAt(x,y,z);
          if (!((block.getTypeId() == 0))) {
            SetBlockFast.set(world,x,y,z,0,(byte)0);
          }
        }
      }
    }
    PlayerFunctions.sendMessage(requester,C.CLEARING_DONE.s().replaceAll("String_Node_Str","String_Node_Str" + ((System.nanoTime() - start) / 1000000.0)));
    SetBlockFast.update(requester);
    return;
  }
 catch (  Exception e) {
    if (Settings.DEBUG) {
      PlotMain.sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
      e.printStackTrace();
    }
 else {
      PlotMain.sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
    PlayerFunctions.sendMessage(requester,C.PREFIX.s() + "String_Node_Str");
  }
}