1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +01:00

Zombie husk is not villager, for some strange reason

This commit is contained in:
Zrips 2016-08-04 16:57:42 +03:00
parent 940115ef71
commit 341a801528
2 changed files with 7 additions and 7 deletions

View File

@ -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();
}
}
}

View File

@ -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: