From eb81446ffc1d8dc1caf6ce1a9e8dae7541be484e Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 3 Dec 2014 10:52:18 +0000 Subject: [PATCH] Fix spawn reason for mob eggs By: Thinkofdeath --- paper-server/nms-patches/ItemMonsterEgg.patch | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/paper-server/nms-patches/ItemMonsterEgg.patch b/paper-server/nms-patches/ItemMonsterEgg.patch index 0bcf36134c..a53df16bbc 100644 --- a/paper-server/nms-patches/ItemMonsterEgg.patch +++ b/paper-server/nms-patches/ItemMonsterEgg.patch @@ -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(); + } + }