From 341a8015284b8d54a855b503ce541a5c90fcbccc Mon Sep 17 00:00:00 2001 From: Zrips Date: Thu, 4 Aug 2016 16:57:42 +0300 Subject: [PATCH] Zombie husk is not villager, for some strange reason --- com/gamingmesh/jobs/config/TitleManager.java | 11 +++++------ com/gamingmesh/jobs/nmsUtil/v1_10.java | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/com/gamingmesh/jobs/config/TitleManager.java b/com/gamingmesh/jobs/config/TitleManager.java index fe44800d..4707027d 100644 --- a/com/gamingmesh/jobs/config/TitleManager.java +++ b/com/gamingmesh/jobs/config/TitleManager.java @@ -143,6 +143,11 @@ public class TitleManager { ChatColor.matchColor(c.get("Titles.Legendary.ChatColour", "BLACK")), c.get("Titles.Legendary.levelReq", 200), null)); + try { + c.getC().save(f); + } catch (IOException e) { + e.printStackTrace(); + } } else for (String titleKey : titleSection.getKeys(false)) { String jobName = null; @@ -175,12 +180,6 @@ public class TitleManager { this.titles.add(new Title(titleName, titleShortName, titleColor, levelReq, jobName)); } - Bukkit.getConsoleSender().sendMessage(ChatColor.YELLOW + "[Jobs] Loaded " + titles.size() + " titles!"); - try { - c.getC().save(f); - } catch (IOException e) { - e.printStackTrace(); - } } } diff --git a/com/gamingmesh/jobs/nmsUtil/v1_10.java b/com/gamingmesh/jobs/nmsUtil/v1_10.java index c78324bd..286d1b4e 100644 --- a/com/gamingmesh/jobs/nmsUtil/v1_10.java +++ b/com/gamingmesh/jobs/nmsUtil/v1_10.java @@ -19,6 +19,7 @@ import org.bukkit.event.block.BlockPistonRetractEvent; import org.bukkit.inventory.ItemStack; import com.gamingmesh.jobs.NMS; +import com.gamingmesh.jobs.stuff.Debug; public class v1_10 implements NMS { @Override @@ -55,7 +56,7 @@ public class v1_10 implements NMS { Zombie zombie = (Zombie) entity; if (zombie.isVillager() && zombie.getVillagerProfession() != Profession.HUSK) return "ZombieVillager"; - if (zombie.isVillager() && zombie.getVillagerProfession() == Profession.HUSK) + if (zombie.getVillagerProfession() == Profession.HUSK) return "ZombieHusk"; break; default: