From cbdcb44a1199aef2654d425c79788c19e904cccd Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 8 Mar 2012 22:12:54 -0500 Subject: [PATCH] Made zombie invasions fire CreatureSpawn event. Fixes BUKKIT-1090 --- src/main/java/net/minecraft/server/VillageSiege.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/VillageSiege.java b/src/main/java/net/minecraft/server/VillageSiege.java index 3c203261e4..04597eb098 100644 --- a/src/main/java/net/minecraft/server/VillageSiege.java +++ b/src/main/java/net/minecraft/server/VillageSiege.java @@ -145,7 +145,7 @@ public class VillageSiege { } entityzombie.setPositionRotation(vec3d.a, vec3d.b, vec3d.c, this.world.random.nextFloat() * 360.0F, 0.0F); - this.world.addEntity(entityzombie); + this.world.addEntity(entityzombie, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_INVASION); // CraftBukkit ChunkCoordinates chunkcoordinates = this.f.getCenter(); entityzombie.b(chunkcoordinates.x, chunkcoordinates.y, chunkcoordinates.z, this.f.getSize());