Fix spawn reason for mob eggs

This commit is contained in:
Thinkofdeath 2014-12-03 10:52:18 +00:00
parent a972ddfc74
commit df0b4c1ca4

View file

@ -1,5 +1,5 @@
--- ../work/decompile-8eb82bde//net/minecraft/server/ItemMonsterEgg.java 2014-11-28 17:43:43.241707432 +0000
+++ src/main/java/net/minecraft/server/ItemMonsterEgg.java 2014-11-28 17:38:19.000000000 +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-12-03 10:51:53.380159449 +0000
@@ -19,7 +19,8 @@
}
@ -23,3 +23,12 @@
if (!EntityTypes.eggInfo.containsKey(Integer.valueOf(i))) {
return null;
} 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();
}
}