From 98b862ad88e5ffbd0d49dead00e39fcac75f65b1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 11 Jan 2019 12:37:43 +1100 Subject: [PATCH] Fix duplicate iron golem add --- nms-patches/Village.patch | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nms-patches/Village.patch b/nms-patches/Village.patch index bb8a0c6f71..d11b37828a 100644 --- a/nms-patches/Village.patch +++ b/nms-patches/Village.patch @@ -1,11 +1,6 @@ --- a/net/minecraft/server/Village.java +++ b/net/minecraft/server/Village.java -@@ -73,11 +73,11 @@ - BlockPosition blockposition1 = blockposition.a(this.a.random.nextInt(16) - 8, this.a.random.nextInt(6) - 3, this.a.random.nextInt(16) - 8); - - if (this.a(blockposition1)) { -- EntityIronGolem entityirongolem = (EntityIronGolem) EntityTypes.IRON_GOLEM.b(this.a, (NBTTagCompound) null, (IChatBaseComponent) null, (EntityHuman) null, blockposition1, false, false); -+ EntityIronGolem entityirongolem = (EntityIronGolem) EntityTypes.IRON_GOLEM.spawnCreature(this.a, (NBTTagCompound) null, (IChatBaseComponent) null, (EntityHuman) null, blockposition1, false, false, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit +@@ -77,7 +77,7 @@ if (entityirongolem != null) { if (entityirongolem.a((GeneratorAccess) this.a, false) && entityirongolem.a((IWorldReader) this.a)) {