summaryrefslogtreecommitdiffhomepage
path: root/patches/unapplied/server/0830-WorldCreator-keepSpawnLoaded.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/unapplied/server/0830-WorldCreator-keepSpawnLoaded.patch')
-rw-r--r--patches/unapplied/server/0830-WorldCreator-keepSpawnLoaded.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/unapplied/server/0830-WorldCreator-keepSpawnLoaded.patch b/patches/unapplied/server/0830-WorldCreator-keepSpawnLoaded.patch
new file mode 100644
index 0000000000..729d58a6b0
--- /dev/null
+++ b/patches/unapplied/server/0830-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 2af02829a4b0096c2ef8b7b54a5dd9c37ad0f9a2..cc74d84ba7053163e4910ccac4b6763afa18c218 100644
+--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+@@ -1272,6 +1272,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
+