summaryrefslogtreecommitdiffstats
path: root/nms-patches/Village.patch
blob: a142c50abd7300da21129caaf7176ad052c15498 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/Village.java
+++ b/net/minecraft/server/Village.java
@@ -64,7 +64,7 @@
                 EntityIronGolem entityirongolem = new EntityIronGolem(this.a);
 
                 entityirongolem.setPosition(vec3d.x, vec3d.y, vec3d.z);
-                this.a.addEntity(entityirongolem);
+                this.a.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
                 ++this.l;
             }
         }