Initial 1.11 release update.

This commit is contained in:
LexManos committed 2016-11-15 19:26:10 -08:00
1 parent 4e6a774075
commit c459b87ec9
34 files changed
+849 -69

No files matched your search

@@ -184,6 +184,13 @@ public class VillagerRegistry
(new VillagerCareer(prof, "butcher")).init(VanillaTrades.trades[4][0]);
(new VillagerCareer(prof, "leather")).init(VanillaTrades.trades[4][1]);
}
prof = new VillagerProfession("minecraft:nitwit",
"minecraft:textures/entity/villager/nitwit.png",
"minecraft:textures/entity/zombie_villager/zombie_nitwit.png");
{
register(prof, 5);
(new VillagerCareer(prof, "nitwit")).init(VanillaTrades.trades[5][0]);
}
}
public static class VillagerProfession extends IForgeRegistryEntry.Impl<VillagerProfession>
@@ -357,7 +364,7 @@ public class VillagerRegistry
public static void onSetProfession(EntityZombieVillager entity, int network)
{
int realID = network - 1;
int realID = network;
VillagerProfession prof = INSTANCE.professions.getObjectById(realID);
if (prof == null && network != 0 || INSTANCE.professions.getId(prof) != realID)
{