mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
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:
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)
|
||||
|
||||
Reference in new issue
Block a user