aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0800-WorldCreator-keepSpawnLoaded.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2023-10-22 12:12:00 -0700
committerGitHub <[email protected]>2023-10-22 20:12:00 +0100
commit90fe0d58a5945c31f2c1b138799f64f2fe3475d8 (patch)
tree57e2a8b12dbe8245ce5694dd15af35dc33c3c4c2 /patches/server/0800-WorldCreator-keepSpawnLoaded.patch
parent489bff9bbdc4215bd2cbc54d837463c608e7747e (diff)
downloadPaper-90fe0d58a5945c31f2c1b138799f64f2fe3475d8.tar.gz
Paper-90fe0d58a5945c31f2c1b138799f64f2fe3475d8.zip
Updated Upstream (Bukkit/CraftBukkit/Spigot) (#9825)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 897a0a23 SPIGOT-5753: Back PotionType by a minecraft registry 255b2aa1 SPIGOT-7080: Add World#locateNearestBiome ff984826 Remove javadoc.io doc links CraftBukkit Changes: 71b0135cc SPIGOT-5753: Back PotionType by a minecraft registry a6bcb8489 SPIGOT-7080: Add World#locateNearestBiome ad0e57434 SPIGOT-7502: CraftMetaItem - cannot deserialize BlockStateTag b3efca57a SPIGOT-6400: Use Mockito instead of InvocationHandler 38c599f9d PR-1272: Only allow one entity in CraftItem instead of two f065271ac SPIGOT-7498: ChunkSnapshot.getBlockEmittedLight() gets 64 blocks upper in Overworld Spigot Changes: e0e223fe Remove javadoc.io doc links
Diffstat (limited to 'patches/server/0800-WorldCreator-keepSpawnLoaded.patch')
-rw-r--r--patches/server/0800-WorldCreator-keepSpawnLoaded.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0800-WorldCreator-keepSpawnLoaded.patch b/patches/server/0800-WorldCreator-keepSpawnLoaded.patch
new file mode 100644
index 0000000000..f83645a792
--- /dev/null
+++ b/patches/server/0800-WorldCreator-keepSpawnLoaded.patch
@@ -0,0 +1,18 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Shane Freeder <[email protected]>
+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 0efe5a68095b1ae1cdc3c566179c6f885217e79a..a62bacbda6e3698403d41365db22f6a7140f1c0c 100644
+--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+@@ -1259,6 +1259,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 // Paper - rewrite chunk system
+