summaryrefslogtreecommitdiffstats
path: root/nms-patches/VillageSiege.patch
blob: 811d9f73b2bc703d555a3326ebc4fc4e48a50037 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/VillageSiege.java
+++ b/net/minecraft/server/VillageSiege.java
@@ -141,7 +141,7 @@
             }
 
             entityzombie.setPositionRotation(vec3d.x, vec3d.y, vec3d.z, 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());