mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-11 22:48:21 +02:00
19 lines
1.0 KiB
Diff
19 lines
1.0 KiB
Diff
|
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
|
||
|
index 16d3f2dce44fc374ec3ab5882135d06113681fb6..ba4578fb4a2d861a6ffbb0ec022db31d9d7cc2be 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
|
||
|
|