2024-04-24 22:05:42 +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
|
2024-10-23 22:52:43 +02:00
|
|
|
index cc08b56da8a276202da3e85315fdb2ad530c2545..b31f3013ff63bb6ece80a9d10e51641a7e93f3df 100644
|
2024-04-24 22:05:42 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2024-10-23 22:52:43 +02:00
|
|
|
@@ -1329,7 +1329,7 @@ public final class CraftServer implements Server {
|
2024-04-25 19:57:27 +02:00
|
|
|
}
|
2024-04-24 22:05:42 +02:00
|
|
|
|
2024-04-25 19:57:27 +02:00
|
|
|
// If set to not keep spawn in memory (changed from default) then adjust rule accordingly
|
|
|
|
- if (!creator.keepSpawnInMemory()) {
|
|
|
|
+ if (creator.keepSpawnLoaded() == net.kyori.adventure.util.TriState.FALSE) { // Paper
|
|
|
|
worlddata.getGameRules().getRule(GameRules.RULE_SPAWN_CHUNK_RADIUS).set(0, null);
|
|
|
|
}
|
|
|
|
ServerLevel internal = (ServerLevel) new ServerLevel(this.console, this.console.executor, worldSession, worlddata, worldKey, worlddimension, this.getServer().progressListenerFactory.create(worlddata.getGameRules().getInt(GameRules.RULE_SPAWN_CHUNK_RADIUS)),
|