Paper/nms-patches/VillageSiege.patch
2014-11-28 11:23:19 +00:00

12 Zeilen
645 B
Diff

--- ../work/decompile-8eb82bde//net/minecraft/server/VillageSiege.java 2014-11-28 11:22:56.238823156 +0000
+++ src/main/java/net/minecraft/server/VillageSiege.java 2014-11-28 11:01:54.000000000 +0000
@@ -140,7 +140,7 @@
}
entityzombie.setPositionRotation(vec3d.a, vec3d.b, vec3d.c, this.a.random.nextFloat() * 360.0F, 0.0F);
- this.a.addEntity(entityzombie);
+ this.a.addEntity(entityzombie, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_INVASION); // CraftBukkit
BlockPosition blockposition = this.f.a();
entityzombie.a(blockposition, this.f.b());