diff options
Diffstat (limited to 'nms-patches/ItemMonsterEgg.patch')
-rw-r--r-- | nms-patches/ItemMonsterEgg.patch | 13 |
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(); |