diff options
author | EvilSeph <evilseph@gmail.com> | 2012-11-20 15:01:36 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-11-20 19:37:01 -0500 |
commit | a17ca07fe84e48a8a6cfa5e0675e469e41496cf8 (patch) | |
tree | ab0a1ef78d6fd65f4abc1b0278ed52893783d45d /src/main/java/net/minecraft | |
parent | c36b3da57331106c44f763cb6767210d74a030d0 (diff) | |
download | craftbukkit-a17ca07fe84e48a8a6cfa5e0675e469e41496cf8.tar craftbukkit-a17ca07fe84e48a8a6cfa5e0675e469e41496cf8.tar.gz craftbukkit-a17ca07fe84e48a8a6cfa5e0675e469e41496cf8.tar.lz craftbukkit-a17ca07fe84e48a8a6cfa5e0675e469e41496cf8.tar.xz craftbukkit-a17ca07fe84e48a8a6cfa5e0675e469e41496cf8.zip |
Add SPAWNER_EGG spawn reason to allow for filtering. Adds BUKKIT-3000
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityAgeable.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityAgeable.java b/src/main/java/net/minecraft/server/EntityAgeable.java index 24d798b2..9ae7f7f3 100644 --- a/src/main/java/net/minecraft/server/EntityAgeable.java +++ b/src/main/java/net/minecraft/server/EntityAgeable.java @@ -21,7 +21,7 @@ public abstract class EntityAgeable extends EntityCreature { if (entityageable != null) { entityageable.setAge(-24000); entityageable.setPositionRotation(this.locX, this.locY, this.locZ, 0.0F, 0.0F); - this.world.addEntity(entityageable); + this.world.addEntity(entityageable, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit // CraftBukkit start if (!entityhuman.abilities.canInstantlyBuild) { |