From f9837e40686558d19fcbce99044e1fbf9e28e3a1 Mon Sep 17 00:00:00 2001 From: Jadon Fowler Date: Fri, 17 Jun 2016 02:29:57 -0700 Subject: [PATCH] Fix infinite loop when saving chunks Running `/save-all flush` would start an infinite loop that prints: ThreadedAnvilChunkSotrage (world): All chunks are saved --- ...Fix-infinite-loop-when-saving-chunks.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Spigot-Server-Patches/0163-Fix-infinite-loop-when-saving-chunks.patch diff --git a/Spigot-Server-Patches/0163-Fix-infinite-loop-when-saving-chunks.patch b/Spigot-Server-Patches/0163-Fix-infinite-loop-when-saving-chunks.patch new file mode 100644 index 0000000000..a310f2abab --- /dev/null +++ b/Spigot-Server-Patches/0163-Fix-infinite-loop-when-saving-chunks.patch @@ -0,0 +1,23 @@ +From d2f4f7f5f8868078bedfad4f64e84e54782fd694 Mon Sep 17 00:00:00 2001 +From: Jadon Fowler +Date: Fri, 17 Jun 2016 02:26:58 -0700 +Subject: [PATCH] Fix infinite loop when saving chunks + +Running `/save-all flush` would start an infinite loop that prints: + ThreadedAnvilChunkStorage (world): All chunks are saved + +diff --git a/src/main/java/net/minecraft/server/ChunkRegionLoader.java b/src/main/java/net/minecraft/server/ChunkRegionLoader.java +index facc97b..2081c29 100644 +--- a/src/main/java/net/minecraft/server/ChunkRegionLoader.java ++++ b/src/main/java/net/minecraft/server/ChunkRegionLoader.java +@@ -219,6 +219,7 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { + if (this.c()) { + continue; + } ++ break; // Paper - fix infinite loop when saving chunks + } + } finally { + this.f = false; +-- +2.7.4 +