mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Allow forge-type spawn-eggs to spawn child entities when clicking EntityAgeable
This commit is contained in:
1 parent
d2248c3774
commit
af1e769895
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
--- ../src-base/minecraft/net/minecraft/entity/EntityAgeable.java
|
||||
+++ ../src-work/minecraft/net/minecraft/entity/EntityAgeable.java
|
||||
@@ -31,7 +31,7 @@
|
||||
{
|
||||
if (!this.field_70170_p.field_72995_K)
|
||||
{
|
||||
- Class <? extends Entity > oclass = EntityList.func_90035_a(itemstack.func_77960_j());
|
||||
+ Class <? extends Entity > oclass = EntityList.field_75625_b.get(net.minecraft.item.ItemMonsterPlacer.getEntityName(itemstack));
|
||||
|
||||
if (oclass != null && this.getClass() == oclass)
|
||||
{
|
||||
Reference in new issue
Block a user