PaperMC/nms-patches/Village.patch

12 lines
552 B
Diff
Raw Normal View History

2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/Village.java
+++ b/net/minecraft/server/Village.java
2019-01-11 12:37:43 +11:00
@@ -77,7 +77,7 @@
2018-07-15 10:00:00 +10:00
if (entityirongolem != null) {
2018-08-26 12:00:00 +10:00
if (entityirongolem.a((GeneratorAccess) this.a, false) && entityirongolem.a((IWorldReader) this.a)) {
- this.a.addEntity(entityirongolem);
+ this.a.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
return entityirongolem;
}