mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Don't double add golems to world - Fixes #1385
spawnCreature adds to world now
This commit is contained in:
parent
a8f31a2704
commit
f942c53fd8
1 changed files with 21 additions and 0 deletions
21
Spigot-Server-Patches/Don-t-double-add-golems-to-world.patch
Normal file
21
Spigot-Server-Patches/Don-t-double-add-golems-to-world.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
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
|
||||
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;
|
||||
}
|
||||
|
||||
--
|
Loading…
Reference in a new issue