summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemMonsterEgg.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-05-10 21:47:39 +1000
committermd_5 <git@md-5.net>2016-05-10 21:47:39 +1000
commitc5e9a169fa564f3b8119b6666f8df59d5a9b45c3 (patch)
tree9f3b1ce732f0082b71512b1dddb7abb35526226e /nms-patches/ItemMonsterEgg.patch
parent4cb32587ac1ff543b2efa9498f8d0d358cb90c12 (diff)
downloadcraftbukkit-c5e9a169fa564f3b8119b6666f8df59d5a9b45c3.tar
craftbukkit-c5e9a169fa564f3b8119b6666f8df59d5a9b45c3.tar.gz
craftbukkit-c5e9a169fa564f3b8119b6666f8df59d5a9b45c3.tar.lz
craftbukkit-c5e9a169fa564f3b8119b6666f8df59d5a9b45c3.tar.xz
craftbukkit-c5e9a169fa564f3b8119b6666f8df59d5a9b45c3.zip
Minecraft 1.9.4
Diffstat (limited to 'nms-patches/ItemMonsterEgg.patch')
-rw-r--r--nms-patches/ItemMonsterEgg.patch13
1 files changed, 7 insertions, 6 deletions
diff --git a/nms-patches/ItemMonsterEgg.patch b/nms-patches/ItemMonsterEgg.patch
index bba43c1f..357a3603 100644
--- a/nms-patches/ItemMonsterEgg.patch
+++ b/nms-patches/ItemMonsterEgg.patch
@@ -1,10 +1,11 @@
--- a/net/minecraft/server/ItemMonsterEgg.java
+++ b/net/minecraft/server/ItemMonsterEgg.java
-@@ -131,6 +131,11 @@
+@@ -130,7 +130,11 @@
}
- public static Entity a(World world, String s, double d0, double d1, double d2) {
-+ // CraftBukkit start - delegate to spawnCreature
+ @Nullable
+- public static Entity a(World world, @Nullable String s, double d0, double d1, double d2) {
++ public static Entity a(World world, @Nullable String s, double d0, double d1, double d2) { // CraftBukkit start - delegate to spawnCreature
+ return spawnCreature(world, s, d0, d1, d2, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG);
+ }
+
@@ -12,9 +13,9 @@
if (s != null && EntityTypes.eggInfo.containsKey(s)) {
Entity entity = null;
-@@ -143,8 +148,13 @@
- entityinsentient.aO = entityinsentient.yaw;
- entityinsentient.aM = entityinsentient.yaw;
+@@ -143,8 +147,13 @@
+ entityinsentient.aP = entityinsentient.yaw;
+ entityinsentient.aN = entityinsentient.yaw;
entityinsentient.prepare(world.D(new BlockPosition(entityinsentient)), (GroupDataEntity) null);
- world.addEntity(entity);
- entityinsentient.D();