summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-11-20 15:01:36 -0500
committerEvilSeph <evilseph@gmail.com>2012-11-20 19:37:01 -0500
commita17ca07fe84e48a8a6cfa5e0675e469e41496cf8 (patch)
treeab0a1ef78d6fd65f4abc1b0278ed52893783d45d /src/main/java
parentc36b3da57331106c44f763cb6767210d74a030d0 (diff)
downloadcraftbukkit-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')
-rw-r--r--src/main/java/net/minecraft/server/EntityAgeable.java2
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) {