PaperMC/paper-server/nms-patches/Village.patch
CraftBukkit/Spigot 4e412ab4e3 Update to Minecraft 1.11
By: md_5 <git@md-5.net>
2016-11-17 12:41:03 +11:00

11 lines
497 B
Diff

--- 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;
}
}