13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/Village.patch
CraftBukkit/Spigot 9782a90283 Fix duplicate iron golem add
By: md_5 <git@md-5.net>
2019-01-11 12:37:43 +11:00

12 Zeilen
552 B
Diff

--- a/net/minecraft/server/Village.java
+++ b/net/minecraft/server/Village.java
@@ -77,7 +77,7 @@
if (entityirongolem != null) {
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;
}