From b606122b85ac7265b23e29eb9bf6c70885aacf06 Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 13 Sep 2018 22:36:38 -0400 Subject: [PATCH] MC-136886: Don't load chunks looking for features - Fixes #1438 I'm sure a few servers have crashed due to this. --- ...n-t-load-chunks-looking-for-features.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Spigot-Server-Patches/0371-MC-136886-Don-t-load-chunks-looking-for-features.patch diff --git a/Spigot-Server-Patches/0371-MC-136886-Don-t-load-chunks-looking-for-features.patch b/Spigot-Server-Patches/0371-MC-136886-Don-t-load-chunks-looking-for-features.patch new file mode 100644 index 0000000000..317ae621c8 --- /dev/null +++ b/Spigot-Server-Patches/0371-MC-136886-Don-t-load-chunks-looking-for-features.patch @@ -0,0 +1,23 @@ +From d00d8472091edc7a87698f0599d81a1706aa5e15 Mon Sep 17 00:00:00 2001 +From: Aikar +Date: Thu, 13 Sep 2018 22:26:54 -0400 +Subject: [PATCH] MC-136886: Don't load chunks looking for features + +I'm sure a few servers have crashed due to this. + +diff --git a/src/main/java/net/minecraft/server/StructureGenerator.java b/src/main/java/net/minecraft/server/StructureGenerator.java +index 6c2899e84d..075011748b 100644 +--- a/src/main/java/net/minecraft/server/StructureGenerator.java ++++ b/src/main/java/net/minecraft/server/StructureGenerator.java +@@ -205,7 +205,7 @@ public abstract class StructureGenerator + return structurestart; + } else { + ChunkCoordIntPair chunkcoordintpair = new ChunkCoordIntPair(i); +- IChunkAccess ichunkaccess = generatoraccess.getChunkProvider().a(chunkcoordintpair.x, chunkcoordintpair.z, false); ++ IChunkAccess ichunkaccess = generatoraccess.getChunkProvider().getChunkAt(chunkcoordintpair.x, chunkcoordintpair.z, false, false); // Paper - don't load chunks + + if (ichunkaccess != null) { + structurestart = ichunkaccess.a(this.a()); +-- +2.18.0 +