Made iron golems fire CreatureSpawn event. Fixes BUKKIT-1089
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user