summaryrefslogtreecommitdiffstats
path: root/nms-patches/Village.patch
blob: ee57a438d6454377722aad3cb44217629df9a99a (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.a, vec3d.b, vec3d.c);
-                this.a.addEntity(entityirongolem);
+                this.a.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
                 ++this.l;
             }
         }