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 mezz committed 2018-11-23 15:19:44 -08:00
1 parent 2fef75c1de
commit 3a64cb8985
3 files changed
+18 -9

No files matched your search

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