summaryrefslogtreecommitdiffstats
path: root/nms-patches/VillageSiege.patch
blob: 617c461bc2a48f1d2a82fadd8169ca645e759bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ../work/decompile-8eb82bde//net/minecraft/server/VillageSiege.java	2014-11-28 17:43:43.417707428 +0000
+++ src/main/java/net/minecraft/server/VillageSiege.java	2014-11-28 17:38:23.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());