From f942c53fd80009a79cb24f4dad02e94fb3231479 Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 30 Aug 2018 20:57:22 -0400 Subject: [PATCH] Don't double add golems to world - Fixes #1385 spawnCreature adds to world now --- .../Don-t-double-add-golems-to-world.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Spigot-Server-Patches/Don-t-double-add-golems-to-world.patch diff --git a/Spigot-Server-Patches/Don-t-double-add-golems-to-world.patch b/Spigot-Server-Patches/Don-t-double-add-golems-to-world.patch new file mode 100644 index 0000000000..05066cf991 --- /dev/null +++ b/Spigot-Server-Patches/Don-t-double-add-golems-to-world.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Aikar +Date: Thu, 30 Aug 2018 20:56:26 -0400 +Subject: [PATCH] Don't double add golems to world + +spawnCreature adds to world now + +diff --git a/src/main/java/net/minecraft/server/Village.java b/src/main/java/net/minecraft/server/Village.java +index 955041e266..5f280fcab9 100644 +--- a/src/main/java/net/minecraft/server/Village.java ++++ b/src/main/java/net/minecraft/server/Village.java +@@ -0,0 +0,0 @@ public class Village { + + if (entityirongolem != null) { + if (entityirongolem.a((GeneratorAccess) this.a, false) && entityirongolem.a((IWorldReader) this.a)) { +- this.a.addEntity(entityirongolem); ++ //this.a.addEntity(entityirongolem); // Paper - already is in the world + return entityirongolem; + } + +-- \ No newline at end of file