mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Made zombie invasions fire CreatureSpawn event. Fixes BUKKIT-1090
This commit is contained in:
parent
ec555a71e3
commit
cbdcb44a11
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue