From a17ca07fe84e48a8a6cfa5e0675e469e41496cf8 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Tue, 20 Nov 2012 15:01:36 -0500 Subject: [PATCH] Add SPAWNER_EGG spawn reason to allow for filtering. Adds BUKKIT-3000 --- src/main/java/net/minecraft/server/EntityAgeable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityAgeable.java b/src/main/java/net/minecraft/server/EntityAgeable.java index 24d798b2a4..9ae7f7f358 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) {