summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-12-03 10:52:18 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-12-03 10:52:18 +0000
commitdf0b4c1ca4a9d8ca3cabf24822361da0ad63af23 (patch)
tree1918e3444bdfa785abff159413f2ab32e2a0ee89 /nms-patches
parenta972ddfc74bd3fa174abe7be1bde873d5a260c3d (diff)
downloadcraftbukkit-df0b4c1ca4a9d8ca3cabf24822361da0ad63af23.tar
craftbukkit-df0b4c1ca4a9d8ca3cabf24822361da0ad63af23.tar.gz
craftbukkit-df0b4c1ca4a9d8ca3cabf24822361da0ad63af23.tar.lz
craftbukkit-df0b4c1ca4a9d8ca3cabf24822361da0ad63af23.tar.xz
craftbukkit-df0b4c1ca4a9d8ca3cabf24822361da0ad63af23.zip
Fix spawn reason for mob eggs
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/ItemMonsterEgg.patch13
1 files changed, 11 insertions, 2 deletions
diff --git a/nms-patches/ItemMonsterEgg.patch b/nms-patches/ItemMonsterEgg.patch
index 0bcf3613..a53df16b 100644
--- a/nms-patches/ItemMonsterEgg.patch
+++ b/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();
+ }
+ }