Fix spawn reason for mob eggs

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
CraftBukkit/Spigot 2014-12-03 10:52:18 +00:00
parent 22718ff198
commit eb81446ffc

View File

@ -1,5 +1,5 @@
--- ../work/decompile-8eb82bde//net/minecraft/server/ItemMonsterEgg.java 2014-11-28 17:43:43.241707432 +0000 --- ../work/decompile-8eb82bde//net/minecraft/server/ItemMonsterEgg.java 2014-12-03 10:52:09.804159084 +0000
+++ src/main/java/net/minecraft/server/ItemMonsterEgg.java 2014-11-28 17:38:19.000000000 +0000 +++ src/main/java/net/minecraft/server/ItemMonsterEgg.java 2014-12-03 10:51:53.380159449 +0000
@@ -19,7 +19,8 @@ @@ -19,7 +19,8 @@
} }
@ -23,3 +23,12 @@
if (!EntityTypes.eggInfo.containsKey(Integer.valueOf(i))) { if (!EntityTypes.eggInfo.containsKey(Integer.valueOf(i))) {
return null; return null;
} else { } else {
@@ -123,7 +130,7 @@
entityinsentient.aI = entityinsentient.yaw;
entityinsentient.aG = entityinsentient.yaw;
entityinsentient.prepare(world.E(new BlockPosition(entityinsentient)), (GroupDataEntity) null);
- world.addEntity(entity);
+ world.addEntity(entity, spawnReason); // CraftBukkit
entityinsentient.x();
}
}