private static void checkTreeHealth(Player p, Patch patch) { patch.setHealthChecked(true); if (patch.isFruitTree()) { patch.setStatus(11); } else { patch.setStatus(patch.getConfigLength() - 2); } p.getPackets().sendMessage("You check the health of the tree."); setConfig(p, patch); p.getSkills().addXp(Skills.SKILL.FARMING, (double)SEEDS[patch.getSeedIndex()][5]); }