Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-24 07:10:10 +01:00
Made zombie invasions fire CreatureSpawn event. Fixes BUKKIT-1090
Dieser Commit ist enthalten in:
Ursprung
ec555a71e3
Commit
cbdcb44a11
@ -145,7 +145,7 @@ public class VillageSiege {
|
|||||||
}
|
}
|
||||||
|
|
||||||
entityzombie.setPositionRotation(vec3d.a, vec3d.b, vec3d.c, this.world.random.nextFloat() * 360.0F, 0.0F);
|
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();
|
ChunkCoordinates chunkcoordinates = this.f.getCenter();
|
||||||
|
|
||||||
entityzombie.b(chunkcoordinates.x, chunkcoordinates.y, chunkcoordinates.z, this.f.getSize());
|
entityzombie.b(chunkcoordinates.x, chunkcoordinates.y, chunkcoordinates.z, this.f.getSize());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren