Program: 187587
Project: 187587
Buggy source:
@EventHandler public void onPlayerInteract(final PlayerInteractEvent event){
  if ((event.getAction().equals(Action.RIGHT_CLICK_AIR) || event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) && event.getPlayer().getItemInHand().getType() == Control.item && MyPetList.hasMyPet(event.getPlayer())) {
    MyPet myPet=MyPetList.getMyPet(event.getPlayer());
    if (myPet.status == PetState.Here && myPet.getCraftPet().canMove()) {
      if (myPet.getSkills().isSkillActive("String_Node_Str")) {
        if (myPet.getSkills().isSkillActive("String_Node_Str")) {
          Behavior behavior=(Behavior)myPet.getSkills().getSkill("String_Node_Str");
          if (behavior.getBehavior() == BehaviorState.Aggressive || behavior.getBehavior() == BehaviorState.Farm) {
            event.getPlayer().sendMessage(MyPetUtil.setColors(MyPetLanguage.getString("String_Node_Str").replace("String_Node_Str",myPet.petName).replace("String_Node_Str","String_Node_Str" + behavior.getBehavior().name())));
            return;
          }
        }
        if (myPet.getSkills().isSkillActive("String_Node_Str")) {
          if (myPet.getCraftPet().getHandle().hasRider()) {
            return;
          }
        }
        Block block=event.getPlayer().getTargetBlock(null,100);
        if (block != null && block.getType() != Material.AIR) {
          for (          int i : ControllIgnoreBlocks) {
            if (block.getTypeId() == i) {
              block=block.getRelative(BlockFace.DOWN);
              break;
            }
          }
          ((Control)myPet.getSkills().getSkill("String_Node_Str")).setMoveTo(block.getLocation());
        }
      }
    }
  }
}

Fixed version (ground truth):
@EventHandler public void onPlayerInteract(final PlayerInteractEvent event){
  if ((event.getAction().equals(Action.RIGHT_CLICK_AIR) || event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) && event.getPlayer().getItemInHand().getType() == Control.item && MyPetList.hasMyPet(event.getPlayer())) {
    MyPet myPet=MyPetList.getMyPet(event.getPlayer());
    if (myPet.status == PetState.Here && myPet.getCraftPet().canMove()) {
      if (myPet.getSkills().isSkillActive("String_Node_Str")) {
        if (myPet.getSkills().isSkillActive("String_Node_Str")) {
          Behavior behavior=(Behavior)myPet.getSkills().getSkill("String_Node_Str");
          if (behavior.getBehavior() == BehaviorState.Aggressive || behavior.getBehavior() == BehaviorState.Farm) {
            event.getPlayer().sendMessage(MyPetUtil.setColors(MyPetLanguage.getString("String_Node_Str").replace("String_Node_Str",myPet.petName).replace("String_Node_Str","String_Node_Str" + behavior.getBehavior().name())));
            return;
          }
        }
        if (myPet.getSkills().isSkillActive("String_Node_Str")) {
          if (myPet.getCraftPet().getHandle().hasRider()) {
            return;
          }
        }
        if (!MyPetPermissions.hasExtended(event.getPlayer(),"String_Node_Str")) {
          myPet.sendMessageToOwner(MyPetUtil.setColors(MyPetLanguage.getString("String_Node_Str")));
          return;
        }
        Block block=event.getPlayer().getTargetBlock(null,100);
        if (block != null && block.getType() != Material.AIR) {
          for (          int i : ControllIgnoreBlocks) {
            if (block.getTypeId() == i) {
              block=block.getRelative(BlockFace.DOWN);
              break;
            }
          }
          ((Control)myPet.getSkills().getSkill("String_Node_Str")).setMoveTo(block.getLocation());
        }
      }
    }
  }
}