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
|
2023-02-23 18:58:50 +01:00
|
|
|
index 591ccb3b5be1207a18bc427dbd51758d8960b8cd..6dcbc6993a2462bc13820d3f8a77c188705fb6c2 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
|
2023-02-23 18:58:50 +01:00
|
|
|
@@ -1259,6 +1259,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);
|
2022-09-26 10:02:51 +02:00
|
|
|
//internal.entityManager.tick(); // SPIGOT-6526: Load pending entities so they are available to the API // Paper - rewrite chunk system
|
2022-04-20 11:26:09 +02:00
|
|
|
|