aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0894-WorldCreator-keepSpawnLoaded.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0894-WorldCreator-keepSpawnLoaded.patch')
-rw-r--r--patches/server/0894-WorldCreator-keepSpawnLoaded.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0894-WorldCreator-keepSpawnLoaded.patch b/patches/server/0894-WorldCreator-keepSpawnLoaded.patch
new file mode 100644
index 0000000000..ff2d26a729
--- /dev/null
+++ b/patches/server/0894-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 fd3d1eb87d613a20458a837371d7df3aadfb94b0..15278bb897e6169bc5d02bf47b455634baec7be1 100644
+--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+@@ -1256,6 +1256,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
+