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