summaryrefslogtreecommitdiffstats
path: root/nms-patches/Village.patch
blob: ca9591e2b0511d5f6f53aee86812e62a77f050f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/Village.java
+++ b/net/minecraft/server/Village.java
@@ -62,7 +62,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;
             }
         }