aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0852-WorldCreator-keepSpawnLoaded.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0852-WorldCreator-keepSpawnLoaded.patch')
-rw-r--r--patches/server/0852-WorldCreator-keepSpawnLoaded.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0852-WorldCreator-keepSpawnLoaded.patch b/patches/server/0852-WorldCreator-keepSpawnLoaded.patch
new file mode 100644
index 0000000000..83b3e1ff72
--- /dev/null
+++ b/patches/server/0852-WorldCreator-keepSpawnLoaded.patch
@@ -0,0 +1,18 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Shane Freeder <[email protected]>
+Date: Sat, 3 Jul 2021 21:18:28 +0100
+Subject: [PATCH] WorldCreator#keepSpawnLoaded
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+index 9ec45da690ab2bcc36b7353cc689c6050936ab5d..8df7c0c29d8bf37e52994751464cc91e44050792 100644
+--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+@@ -1248,6 +1248,7 @@ public final class CraftServer implements Server {
+ internal.setSpawnSettings(true, true);
+ // Paper - move up
+
++ internal.keepSpawnInMemory = creator.keepSpawnLoaded().toBooleanOrElse(internal.getWorld().getKeepSpawnInMemory()); // Paper
+ this.getServer().prepareLevels(internal.getChunkSource().chunkMap.progressListener, internal);
+ //internal.entityManager.tick(); // SPIGOT-6526: Load pending entities so they are available to the API // Paper - rewrite chunk system
+