@@ -1,11 +1,9 @@
|
||||
--- a/net/minecraft/server/ItemMonsterEgg.java
|
||||
+++ b/net/minecraft/server/ItemMonsterEgg.java
|
||||
@@ -130,7 +130,11 @@
|
||||
}
|
||||
@@ -131,6 +131,10 @@
|
||||
|
||||
@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
|
||||
public static Entity a(World world, @Nullable String s, double d0, double d1, double d2) {
|
||||
+ return spawnCreature(world, s, d0, d1, d2, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG);
|
||||
+ }
|
||||
+
|
||||
@@ -14,8 +12,8 @@
|
||||
Entity entity = null;
|
||||
|
||||
@@ -143,8 +147,13 @@
|
||||
entityinsentient.aP = entityinsentient.yaw;
|
||||
entityinsentient.aN = entityinsentient.yaw;
|
||||
entityinsentient.aQ = entityinsentient.yaw;
|
||||
entityinsentient.aO = entityinsentient.yaw;
|
||||
entityinsentient.prepare(world.D(new BlockPosition(entityinsentient)), (GroupDataEntity) null);
|
||||
- world.addEntity(entity);
|
||||
- entityinsentient.D();
|
||||
|
||||
Reference in New Issue
Block a user