Program: 187588
Project: 187588
Buggy source:
public static void loadConfiguration(){
  leashItem=MyPetUtil.checkMaterial(config.getInt("String_Node_Str",287),Material.STRING);
  Control.item=MyPetUtil.checkMaterial(config.getInt("String_Node_Str",287),Material.STRING);
  Ride.item=MyPetUtil.checkMaterial(config.getInt("String_Node_Str",287),Material.STRING);
  Beacon.hungerDecreaseTime=config.getInt("String_Node_Str",100);
  HPregeneration.healtregenTime=config.getInt("String_Node_Str",60);
  Inventory.creative=config.getBoolean("String_Node_Str",true);
  Behavior.BehaviorState.Aggressive.setActive(config.getBoolean("String_Node_Str",true));
  Behavior.BehaviorState.Farm.setActive(config.getBoolean("String_Node_Str",true));
  Behavior.BehaviorState.Friendly.setActive(config.getBoolean("String_Node_Str",true));
  Behavior.BehaviorState.Raid.setActive(config.getBoolean("String_Node_Str",true));
  skilltreeSwitchPenaltyFixed=config.getDouble("String_Node_Str",0.0);
  skilltreeSwitchPenaltyPercent=config.getInt("String_Node_Str",5);
  skilltreeSwitchPenaltyAdmin=config.getBoolean("String_Node_Str",false);
  inheritAlreadyInheritedSkills=config.getBoolean("String_Node_Str",false);
  passivePercentPerMonster=config.getInt("String_Node_Str",25);
  respawnTimeFactor=config.getInt("String_Node_Str",5);
  respawnTimeFixed=config.getInt("String_Node_Str",0);
  automaticSkilltreeAssignment=config.getBoolean("String_Node_Str",true);
  chooseSkilltreeOnce=config.getBoolean("String_Node_Str",true);
  levelSystem=config.getBoolean("String_Node_Str",true);
  ownerCanAttackPet=config.getBoolean("String_Node_Str",false);
  hungerSystem=config.getBoolean("String_Node_Str",true);
  hungerSystemTime=config.getInt("String_Node_Str",60);
  superperms=config.getBoolean("String_Node_Str",false);
  sendMetrics=config.getBoolean("String_Node_Str",true);
  checkForUpdates=config.getBoolean("String_Node_Str",false);
  debugLogger=config.getBoolean("String_Node_Str",false);
  MyPetPvP.useTowny=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useFactions=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useWorldGuard=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useCitizens=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useHeroes=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useMcMMO=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useMobArena=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useRegios=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useResidence=config.getBoolean("String_Node_Str",true);
  MyPetExperience.lossPercent=config.getInt("String_Node_Str");
  MyPetExperience.lossFixed=config.getDouble("String_Node_Str");
  for (  MyPetType petType : MyPetType.values()) {
    MyPet.setStartHP(petType.getMyPetClass(),config.getInt("String_Node_Str" + petType.getTypeName() + "String_Node_Str",20));
    MyPet.setStartDamage(petType.getMyPetClass(),config.getInt("String_Node_Str" + petType.getTypeName() + "String_Node_Str",2));
    MyPet.setStartSpeed(petType.getMyPetClass(),(float)config.getDouble("String_Node_Str" + petType.getTypeName() + "String_Node_Str",0.3F));
  }
  seperateFood(MyBat.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyBlaze.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyCaveSpider.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyChicken.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyCow.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyCreeper.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyEnderman.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyGiant.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyIronGolem.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyMagmaCube.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyMooshroom.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyOcelot.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyPig.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyPigZombie.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySheep.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySilverfish.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySkeleton.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySlime.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySnowman.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySpider.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyVillager.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyWitch.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyWolf.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyZombie.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateLeashFlags(MyBat.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyBlaze.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyCaveSpider.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyChicken.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyCow.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyCreeper.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyEnderman.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyGiant.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyIronGolem.class,config.getString("String_Node_Str",LeashFlag.UserCreated.name()));
  seperateLeashFlags(MyMagmaCube.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyMooshroom.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyOcelot.class,config.getString("String_Node_Str",LeashFlag.Tamed.name()));
  seperateLeashFlags(MyPig.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyPigZombie.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySheep.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MySilverfish.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySkeleton.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySlime.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySnowman.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySpider.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyVillager.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyWitch.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyWolf.class,config.getString("String_Node_Str",LeashFlag.Tamed.name()));
  seperateLeashFlags(MyZombie.class,config.getString("String_Node_Str",LeashFlag.LowHp.name() + "String_Node_Str" + LeashFlag.Adult.name()));
  if (config.getStringList("String_Node_Str") != null) {
    double min;
    double max;
    for (    EntityType entityType : MyPetExperience.mobExp.keySet()) {
      min=0;
      max=0;
      if (config.contains("String_Node_Str" + entityType.getName() + "String_Node_Str")) {
        max=config.getDouble("String_Node_Str" + entityType.getName() + "String_Node_Str",0.);
      }
      if (config.contains("String_Node_Str" + entityType.getName() + "String_Node_Str")) {
        min=config.getDouble("String_Node_Str" + entityType.getName() + "String_Node_Str",0.);
      }
      if (min == max) {
        MyPetExperience.mobExp.get(entityType).setExp(max);
      }
 else {
        MyPetExperience.mobExp.get(entityType).setMin(min);
        MyPetExperience.mobExp.get(entityType).setMax(max);
      }
    }
  }
}

Fixed version (ground truth):
public static void loadConfiguration(){
  leashItem=MyPetUtil.checkMaterial(config.getInt("String_Node_Str",287),Material.STRING);
  Control.item=MyPetUtil.checkMaterial(config.getInt("String_Node_Str",287),Material.STRING);
  Ride.item=MyPetUtil.checkMaterial(config.getInt("String_Node_Str",287),Material.STRING);
  Beacon.hungerDecreaseTime=config.getInt("String_Node_Str",100);
  HPregeneration.healtregenTime=config.getInt("String_Node_Str",60);
  Inventory.creative=config.getBoolean("String_Node_Str",true);
  Behavior.BehaviorState.Aggressive.setActive(config.getBoolean("String_Node_Str",true));
  Behavior.BehaviorState.Farm.setActive(config.getBoolean("String_Node_Str",true));
  Behavior.BehaviorState.Friendly.setActive(config.getBoolean("String_Node_Str",true));
  Behavior.BehaviorState.Raid.setActive(config.getBoolean("String_Node_Str",true));
  skilltreeSwitchPenaltyFixed=config.getDouble("String_Node_Str",0.0);
  skilltreeSwitchPenaltyPercent=config.getInt("String_Node_Str",5);
  skilltreeSwitchPenaltyAdmin=config.getBoolean("String_Node_Str",false);
  inheritAlreadyInheritedSkills=config.getBoolean("String_Node_Str",false);
  passivePercentPerMonster=config.getInt("String_Node_Str",25);
  respawnTimeFactor=config.getInt("String_Node_Str",5);
  respawnTimeFixed=config.getInt("String_Node_Str",0);
  automaticSkilltreeAssignment=config.getBoolean("String_Node_Str",true);
  chooseSkilltreeOnce=config.getBoolean("String_Node_Str",true);
  levelSystem=config.getBoolean("String_Node_Str",true);
  ownerCanAttackPet=config.getBoolean("String_Node_Str",false);
  hungerSystem=config.getBoolean("String_Node_Str",true);
  hungerSystemTime=config.getInt("String_Node_Str",60);
  superperms=config.getBoolean("String_Node_Str",false);
  MyPetPermissions.useExtendedPermissions=config.getBoolean("String_Node_Str",false);
  sendMetrics=config.getBoolean("String_Node_Str",true);
  checkForUpdates=config.getBoolean("String_Node_Str",false);
  debugLogger=config.getBoolean("String_Node_Str",false);
  MyPetPvP.useTowny=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useFactions=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useWorldGuard=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useCitizens=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useHeroes=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useMcMMO=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useMobArena=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useRegios=config.getBoolean("String_Node_Str",true);
  MyPetPvP.useResidence=config.getBoolean("String_Node_Str",true);
  MyPetExperience.lossPercent=config.getInt("String_Node_Str");
  MyPetExperience.lossFixed=config.getDouble("String_Node_Str");
  for (  MyPetType petType : MyPetType.values()) {
    MyPet.setStartHP(petType.getMyPetClass(),config.getInt("String_Node_Str" + petType.getTypeName() + "String_Node_Str",20));
    MyPet.setStartDamage(petType.getMyPetClass(),config.getInt("String_Node_Str" + petType.getTypeName() + "String_Node_Str",2));
    MyPet.setStartSpeed(petType.getMyPetClass(),(float)config.getDouble("String_Node_Str" + petType.getTypeName() + "String_Node_Str",0.3F));
  }
  seperateFood(MyBat.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyBlaze.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyCaveSpider.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyChicken.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyCow.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyCreeper.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyEnderman.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyGiant.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyIronGolem.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyMagmaCube.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyMooshroom.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyOcelot.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyPig.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyPigZombie.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySheep.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySilverfish.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySkeleton.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySlime.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySnowman.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MySpider.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyVillager.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyWitch.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyWolf.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateFood(MyZombie.class,config.getString("String_Node_Str","String_Node_Str"));
  seperateLeashFlags(MyBat.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyBlaze.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyCaveSpider.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyChicken.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyCow.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyCreeper.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyEnderman.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyGiant.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyIronGolem.class,config.getString("String_Node_Str",LeashFlag.UserCreated.name()));
  seperateLeashFlags(MyMagmaCube.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyMooshroom.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyOcelot.class,config.getString("String_Node_Str",LeashFlag.Tamed.name()));
  seperateLeashFlags(MyPig.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyPigZombie.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySheep.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MySilverfish.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySkeleton.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySlime.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySnowman.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MySpider.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyVillager.class,config.getString("String_Node_Str",LeashFlag.Baby.name()));
  seperateLeashFlags(MyWitch.class,config.getString("String_Node_Str",LeashFlag.LowHp.name()));
  seperateLeashFlags(MyWolf.class,config.getString("String_Node_Str",LeashFlag.Tamed.name()));
  seperateLeashFlags(MyZombie.class,config.getString("String_Node_Str",LeashFlag.LowHp.name() + "String_Node_Str" + LeashFlag.Adult.name()));
  if (config.getStringList("String_Node_Str") != null) {
    double min;
    double max;
    for (    EntityType entityType : MyPetExperience.mobExp.keySet()) {
      min=0;
      max=0;
      if (config.contains("String_Node_Str" + entityType.getName() + "String_Node_Str")) {
        max=config.getDouble("String_Node_Str" + entityType.getName() + "String_Node_Str",0.);
      }
      if (config.contains("String_Node_Str" + entityType.getName() + "String_Node_Str")) {
        min=config.getDouble("String_Node_Str" + entityType.getName() + "String_Node_Str",0.);
      }
      if (min == max) {
        MyPetExperience.mobExp.get(entityType).setExp(max);
      }
 else {
        MyPetExperience.mobExp.get(entityType).setMin(min);
        MyPetExperience.mobExp.get(entityType).setMax(max);
      }
    }
  }
}