Re-add some missing villager profession patches (#5200)

* Fix zombie villagers only spawning with vanilla professions
* Fix spawning modded villagers that do not have their own building
This commit is contained in:
Ben Staddon authored and tterrag committed 2019-04-11 18:50:01 -04:00
1 parent 7c401e9a35
commit 7496e3dbdf
3 files changed
+18 -10

No files matched your search

@@ -320,12 +320,10 @@ public class VillagerRegistry
entity.setProfession(INSTANCE.REGISTRY.getRandom(rand));
}
public static void setRandomProfession(EntityZombieVillager entity, Random rand)
{
entity.setProfession(INSTANCE.REGISTRY.getRandom(rand));
}
//Below this is INTERNAL USE ONLY DO NOT USE MODDERS
public static void onSetProfession(EntityVillager entity, int network)