2019-01-01 04:15:55 +01:00
|
|
|
From f2b1092f6e41ddc56e63ffd5a87d4169e8e8d6a6 Mon Sep 17 00:00:00 2001
|
2018-08-31 02:57:22 +02:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
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
|
2019-01-01 04:15:55 +01:00
|
|
|
index c63f70b1f..057a3b475 100644
|
2018-08-31 02:57:22 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/Village.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Village.java
|
2018-10-12 03:42:13 +02:00
|
|
|
@@ -83,7 +83,7 @@ public class Village {
|
2018-08-31 02:57:22 +02:00
|
|
|
|
|
|
|
if (entityirongolem != null) {
|
|
|
|
if (entityirongolem.a((GeneratorAccess) this.a, false) && entityirongolem.a((IWorldReader) this.a)) {
|
2018-11-14 05:21:32 +01:00
|
|
|
- this.a.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
|
2018-08-31 02:57:22 +02:00
|
|
|
+ //this.a.addEntity(entityirongolem); // Paper - already is in the world
|
|
|
|
return entityirongolem;
|
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2019-01-01 04:15:55 +01:00
|
|
|
2.20.1
|
2018-08-31 02:57:22 +02:00
|
|
|
|