diff options
author | EvilSeph <evilseph@gmail.com> | 2012-03-08 21:57:46 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-08 21:57:46 -0500 |
commit | ecb00bba85d0a87b85382ff92fe09fa5741c6ea7 (patch) | |
tree | 9da91ff858fe8b497c1acad66e04431a79bfd1cc /src/main/java/net/minecraft/server/Village.java | |
parent | f5ce8627c6a1300bbb9a570adac043247735cb18 (diff) | |
download | craftbukkit-ecb00bba85d0a87b85382ff92fe09fa5741c6ea7.tar craftbukkit-ecb00bba85d0a87b85382ff92fe09fa5741c6ea7.tar.gz craftbukkit-ecb00bba85d0a87b85382ff92fe09fa5741c6ea7.tar.lz craftbukkit-ecb00bba85d0a87b85382ff92fe09fa5741c6ea7.tar.xz craftbukkit-ecb00bba85d0a87b85382ff92fe09fa5741c6ea7.zip |
Made iron golems fire CreatureSpawn event. Fixes BUKKIT-1089
Diffstat (limited to 'src/main/java/net/minecraft/server/Village.java')
-rw-r--r-- | src/main/java/net/minecraft/server/Village.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/Village.java b/src/main/java/net/minecraft/server/Village.java index a0ac3ad8..786e17ba 100644 --- a/src/main/java/net/minecraft/server/Village.java +++ b/src/main/java/net/minecraft/server/Village.java @@ -42,7 +42,7 @@ public class Village { EntityIronGolem entityirongolem = new EntityIronGolem(this.world); entityirongolem.setPosition(vec3d.a, vec3d.b, vec3d.c); - this.world.addEntity(entityirongolem); + this.world.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit ++this.j; } } |