Paper/patches/server/0885-WorldCreator-keepSpawnLoaded.patch

19 lines
1.0 KiB
Diff
Raw Normal View History

2022-04-20 11:26:09 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Shane Freeder <theboyetronic@gmail.com>
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
2022-06-08 16:50:14 +02:00
index 4c3e17130c12765b2d693ceca4e2701c8ba08cd6..ef5f638a03515e965688e3f336ecf44fb11de64e 100644
2022-04-20 11:26:09 +02:00
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -1238,6 +1238,7 @@ public final class CraftServer implements Server {
2022-04-20 11:26:09 +02:00
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