13
0
geforkt von Mirrors/Paper

WorldCreator#keepSpawnLoaded

Dieser Commit ist enthalten in:
Shane Freeder 2021-07-03 21:18:28 +01:00
Ursprung bc02501cc2
Commit 2bf4b6e53d

Datei anzeigen

@ -1328,7 +1328,7 @@ public final class CraftServer implements Server {
}
// 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)),