Program: 17660
Project: 17660
Buggy source:
public static boolean syncConfig(){
  enableRetrogen=configFile.get("String_Node_Str","String_Node_Str",enableRetrogen).getBoolean(enableRetrogen);
  boolean BoP=false;
  if (Loader.isModLoaded("String_Node_Str")) {
    BoP=true;
  }
  babyHeatscarMinimum=configFile.get("String_Node_Str","String_Node_Str",babyHeatscarMinimum).getInt(babyHeatscarMinimum);
  if (babyHeatscarMinimum < 0) {
    babyHeatscarMinimum=0;
  }
  babyHeatscarMaximum=configFile.get("String_Node_Str","String_Node_Str",babyHeatscarMaximum).getInt(babyHeatscarMaximum);
  if (babyHeatscarMaximum < 0) {
    babyHeatscarMaximum=0;
  }
  overrideNether=configFile.get(ENABLE_DISABLE,"String_Node_Str",!BoP).getBoolean(!BoP);
  canRespawnInNether=configFile.get(ENABLE_DISABLE,"String_Node_Str",canRespawnInNether).getBoolean(canRespawnInNether);
  generateRedwood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateRedwood).getBoolean(generateRedwood);
  generateMaple=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateMaple).getBoolean(generateMaple);
  generateSilverbell=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateSilverbell).getBoolean(generateSilverbell);
  generateAmaranth=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateAmaranth).getBoolean(generateAmaranth);
  generateTiger=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateTiger).getBoolean(generateTiger);
  generateWillow=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateWillow).getBoolean(generateWillow);
  generateEucalyptus=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateEucalyptus).getBoolean(generateEucalyptus);
  generateHopseed=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateHopseed).getBoolean(generateHopseed);
  generateSakura=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateSakura).getBoolean(generateSakura);
  generateSaguaro=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateSaguaro).getBoolean(generateSaguaro);
  generateBloodwood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBloodwood).getBoolean(generateBloodwood);
  generateDarkwood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateDarkwood).getBoolean(generateDarkwood);
  generateFusewood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateFusewood).getBoolean(generateFusewood);
  generateGhostwood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateGhostwood).getBoolean(generateGhostwood);
  generateThornvines=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateThornvines).getBoolean(generateThornvines);
  generateBarley=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBarley).getBoolean(generateBarley);
  generateCotton=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateCotton).getBoolean(generateCotton);
  generateBluebells=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBluebells).getBoolean(generateBluebells);
  generateBlueberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBlueberries).getBoolean(generateBlueberries);
  generateBlackberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBlackberries).getBoolean(generateBlackberries);
  generateRaspberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateRaspberries).getBoolean(generateRaspberries);
  generateMaloberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateMaloberries).getBoolean(generateMaloberries);
  generateBlightberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBlightberries).getBoolean(generateBlightberries);
  generateDuskberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateDuskberries).getBoolean(generateDuskberries);
  generateSkyberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateSkyberries).getBoolean(generateSkyberries);
  generateStingberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateStingberries).getBoolean(generateStingberries);
  generateGreenglowshroom=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateGreenglowshroom).getBoolean(generateGreenglowshroom);
  generatePurpleglowshroom=configFile.get(ENABLE_DISABLE,"String_Node_Str",generatePurpleglowshroom).getBoolean(generatePurpleglowshroom);
  generateBlueglowshroom=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBlueglowshroom).getBoolean(generateBlueglowshroom);
  generateGlowshroomtree=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateGlowshroomtree).getBoolean(generateGlowshroomtree);
  dropCotton=configFile.get(ENABLE_DISABLE,"String_Node_Str",dropCotton).getBoolean(dropCotton);
  dropBarley=configFile.get(ENABLE_DISABLE,"String_Node_Str",dropBarley).getBoolean(dropBarley);
  try {
    Class.forName("String_Node_Str");
    enableWheatRecipe=configFile.get(ENABLE_DISABLE,"String_Node_Str",false).getBoolean(false);
  }
 catch (  Exception e) {
    enableWheatRecipe=configFile.get(ENABLE_DISABLE,"String_Node_Str",true).getBoolean(true);
  }
  redwoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",redwoodSpawnRarity).getInt(redwoodSpawnRarity);
  mapleRarity=configFile.get(WORLDGEN,"String_Node_Str",mapleRarity).getInt(mapleRarity);
  silverbellRarity=configFile.get(WORLDGEN,"String_Node_Str",silverbellRarity).getInt(silverbellRarity);
  amaranthRarity=configFile.get(WORLDGEN,"String_Node_Str",amaranthRarity).getInt(amaranthRarity);
  tigerRarity=configFile.get(WORLDGEN,"String_Node_Str",tigerRarity).getInt(tigerRarity);
  willowRarity=configFile.get(WORLDGEN,"String_Node_Str",willowRarity).getInt(willowRarity);
  eucalyptusSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",eucalyptusSpawnRarity).getInt(eucalyptusSpawnRarity);
  eucalyptusSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",eucalyptusSpawnRange).getInt(eucalyptusSpawnRange);
  hopseedSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",hopseedSpawnRarity).getInt(hopseedSpawnRarity);
  hopseedSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",hopseedSpawnRange).getInt(hopseedSpawnRange);
  sakuraSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",sakuraSpawnRarity).getInt(sakuraSpawnRarity);
  sakuraSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",sakuraSpawnRange).getInt(sakuraSpawnRange);
  bloodwoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",bloodwoodSpawnRarity).getInt(bloodwoodSpawnRarity);
  darkwoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",darkwoodSpawnRarity).getInt(darkwoodSpawnRarity);
  fusewoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",fusewoodSpawnRarity).getInt(fusewoodSpawnRarity);
  ghostwoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",ghostwoodSpawnRarity).getInt(ghostwoodSpawnRarity);
  saguaroSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",saguaroSpawnRarity).getInt(saguaroSpawnRarity);
  raspSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",raspSpawnRarity).getInt(raspSpawnRarity);
  raspSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",raspSpawnRange).getInt(raspSpawnRange);
  blueSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",blueSpawnRarity).getInt(blueSpawnRarity);
  blueSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",blueSpawnRange).getInt(blueSpawnRange);
  blackSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",blackSpawnRarity).getInt(blackSpawnRarity);
  blackSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",blackSpawnRange).getInt(blackSpawnRange);
  maloSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",maloSpawnRarity).getInt(maloSpawnRarity);
  maloSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",maloSpawnRange).getInt(maloSpawnRange);
  blightSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",blightSpawnRarity).getInt(blightSpawnRarity);
  blightSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",blightSpawnRange).getInt(blightSpawnRange);
  duskSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",duskSpawnRarity).getInt(duskSpawnRarity);
  duskSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",duskSpawnRange).getInt(duskSpawnRange);
  skySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",skySpawnRarity).getInt(skySpawnRarity);
  skySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",skySpawnRange).getInt(skySpawnRange);
  stingSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",stingSpawnRarity).getInt(stingSpawnRarity);
  stingSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",stingSpawnRange).getInt(stingSpawnRange);
  thornSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",thornSpawnRarity).getInt(thornSpawnRarity);
  seaLevel=configFile.get("String_Node_Str","String_Node_Str",seaLevel).getInt(seaLevel);
  boolean changed=false;
  if (configFile.hasChanged()) {
    configFile.save();
    changed=true;
  }
  return changed;
}

Fixed version (ground truth):
public static boolean syncConfig(){
  enableRetrogen=configFile.get("String_Node_Str","String_Node_Str",enableRetrogen).getBoolean(enableRetrogen);
  boolean BoP=false;
  if (Loader.isModLoaded("String_Node_Str")) {
    BoP=true;
  }
  babyHeatscarMinimum=configFile.get("String_Node_Str","String_Node_Str",babyHeatscarMinimum).getInt(babyHeatscarMinimum);
  if (babyHeatscarMinimum < 0) {
    babyHeatscarMinimum=0;
  }
  babyHeatscarMaximum=configFile.get("String_Node_Str","String_Node_Str",babyHeatscarMaximum).getInt(babyHeatscarMaximum);
  if (babyHeatscarMaximum < 0) {
    babyHeatscarMaximum=0;
  }
  overrideNether=configFile.get(ENABLE_DISABLE,"String_Node_Str",!BoP).getBoolean(!BoP);
  canRespawnInNether=configFile.get(ENABLE_DISABLE,"String_Node_Str",canRespawnInNether).getBoolean(canRespawnInNether);
  generateRedwood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateRedwood).getBoolean(generateRedwood);
  generateMaple=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateMaple).getBoolean(generateMaple);
  generateSilverbell=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateSilverbell).getBoolean(generateSilverbell);
  generateAmaranth=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateAmaranth).getBoolean(generateAmaranth);
  generateTiger=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateTiger).getBoolean(generateTiger);
  generateWillow=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateWillow).getBoolean(generateWillow);
  generateEucalyptus=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateEucalyptus).getBoolean(generateEucalyptus);
  generateHopseed=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateHopseed).getBoolean(generateHopseed);
  generateSakura=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateSakura).getBoolean(generateSakura);
  generateSaguaro=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateSaguaro).getBoolean(generateSaguaro);
  generateBloodwood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBloodwood).getBoolean(generateBloodwood);
  generateDarkwood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateDarkwood).getBoolean(generateDarkwood);
  generateFusewood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateFusewood).getBoolean(generateFusewood);
  generateGhostwood=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateGhostwood).getBoolean(generateGhostwood);
  generateRaspberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateRaspberries).getBoolean(generateRaspberries);
  generateBlueberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBlueberries).getBoolean(generateBlueberries);
  generateBlackberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBlackberries).getBoolean(generateBlackberries);
  generateMaloberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateMaloberries).getBoolean(generateMaloberries);
  generateBlightberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBlightberries).getBoolean(generateBlightberries);
  generateDuskberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateDuskberries).getBoolean(generateDuskberries);
  generateSkyberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateSkyberries).getBoolean(generateSkyberries);
  generateStingberries=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateStingberries).getBoolean(generateStingberries);
  generateThornvines=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateThornvines).getBoolean(generateThornvines);
  generateBarley=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBarley).getBoolean(generateBarley);
  generateCotton=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateCotton).getBoolean(generateCotton);
  generateBluebells=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBluebells).getBoolean(generateBluebells);
  generateGreenglowshroom=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateGreenglowshroom).getBoolean(generateGreenglowshroom);
  generatePurpleglowshroom=configFile.get(ENABLE_DISABLE,"String_Node_Str",generatePurpleglowshroom).getBoolean(generatePurpleglowshroom);
  generateBlueglowshroom=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateBlueglowshroom).getBoolean(generateBlueglowshroom);
  generateGlowshroomtree=configFile.get(ENABLE_DISABLE,"String_Node_Str",generateGlowshroomtree).getBoolean(generateGlowshroomtree);
  dropCotton=configFile.get(ENABLE_DISABLE,"String_Node_Str",dropCotton).getBoolean(dropCotton);
  dropBarley=configFile.get(ENABLE_DISABLE,"String_Node_Str",dropBarley).getBoolean(dropBarley);
  try {
    Class.forName("String_Node_Str");
    enableWheatRecipe=configFile.get(ENABLE_DISABLE,"String_Node_Str",false).getBoolean(false);
  }
 catch (  Exception e) {
    enableWheatRecipe=configFile.get(ENABLE_DISABLE,"String_Node_Str",true).getBoolean(true);
  }
  redwoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",redwoodSpawnRarity).getInt(redwoodSpawnRarity);
  mapleRarity=configFile.get(WORLDGEN,"String_Node_Str",mapleRarity).getInt(mapleRarity);
  silverbellRarity=configFile.get(WORLDGEN,"String_Node_Str",silverbellRarity).getInt(silverbellRarity);
  amaranthRarity=configFile.get(WORLDGEN,"String_Node_Str",amaranthRarity).getInt(amaranthRarity);
  tigerRarity=configFile.get(WORLDGEN,"String_Node_Str",tigerRarity).getInt(tigerRarity);
  willowRarity=configFile.get(WORLDGEN,"String_Node_Str",willowRarity).getInt(willowRarity);
  eucalyptusSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",eucalyptusSpawnRarity).getInt(eucalyptusSpawnRarity);
  eucalyptusSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",eucalyptusSpawnRange).getInt(eucalyptusSpawnRange);
  hopseedSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",hopseedSpawnRarity).getInt(hopseedSpawnRarity);
  hopseedSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",hopseedSpawnRange).getInt(hopseedSpawnRange);
  sakuraSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",sakuraSpawnRarity).getInt(sakuraSpawnRarity);
  sakuraSpawnRange=configFile.get(WORLDGEN,"String_Node_Str",sakuraSpawnRange).getInt(sakuraSpawnRange);
  bloodwoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",bloodwoodSpawnRarity).getInt(bloodwoodSpawnRarity);
  darkwoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",darkwoodSpawnRarity).getInt(darkwoodSpawnRarity);
  fusewoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",fusewoodSpawnRarity).getInt(fusewoodSpawnRarity);
  ghostwoodSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",ghostwoodSpawnRarity).getInt(ghostwoodSpawnRarity);
  saguaroSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",saguaroSpawnRarity).getInt(saguaroSpawnRarity);
  raspberrySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",raspberrySpawnRarity).getInt(raspberrySpawnRarity);
  raspberrySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",raspberrySpawnRange).getInt(raspberrySpawnRange);
  blueberrySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",blueberrySpawnRarity).getInt(blueberrySpawnRarity);
  blueberrySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",blueberrySpawnRange).getInt(blueberrySpawnRange);
  blackberrySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",blackberrySpawnRarity).getInt(blackberrySpawnRarity);
  blackberrySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",blackberrySpawnRange).getInt(blackberrySpawnRange);
  maloberrySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",maloberrySpawnRarity).getInt(maloberrySpawnRarity);
  maloberrySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",maloberrySpawnRange).getInt(maloberrySpawnRange);
  blightberrySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",blightberrySpawnRarity).getInt(blightberrySpawnRarity);
  blightberrySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",blightberrySpawnRange).getInt(blightberrySpawnRange);
  duskberrySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",duskberrySpawnRarity).getInt(duskberrySpawnRarity);
  duskberrySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",duskberrySpawnRange).getInt(duskberrySpawnRange);
  skyberrySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",skyberrySpawnRarity).getInt(skyberrySpawnRarity);
  skyberrySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",skyberrySpawnRange).getInt(skyberrySpawnRange);
  stingberrySpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",stingberrySpawnRarity).getInt(stingberrySpawnRarity);
  stingberrySpawnRange=configFile.get(WORLDGEN,"String_Node_Str",stingberrySpawnRange).getInt(stingberrySpawnRange);
  thornSpawnRarity=configFile.get(WORLDGEN,"String_Node_Str",thornSpawnRarity).getInt(thornSpawnRarity);
  seaLevel=configFile.get("String_Node_Str","String_Node_Str",seaLevel).getInt(seaLevel);
  boolean changed=false;
  if (configFile.hasChanged()) {
    configFile.save();
    changed=true;
  }
  return changed;
}