aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0903-Use-correct-seed-on-api-world-load.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0903-Use-correct-seed-on-api-world-load.patch')
-rw-r--r--patches/server/0903-Use-correct-seed-on-api-world-load.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0903-Use-correct-seed-on-api-world-load.patch b/patches/server/0903-Use-correct-seed-on-api-world-load.patch
new file mode 100644
index 0000000000..a39775a339
--- /dev/null
+++ b/patches/server/0903-Use-correct-seed-on-api-world-load.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Florian Schmidt <[email protected]>
+Date: Fri, 28 Jul 2023 14:14:35 +0200
+Subject: [PATCH] Use correct seed on api world load
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+index 458bf151cb733e023b897a2acff2ab3a10fe0949..33d5454b95011395e0868b4e6a338a2db4b5c398 100644
+--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+@@ -1361,7 +1361,7 @@ public final class CraftServer implements Server {
+ net.minecraft.server.Main.forceUpgrade(worldSession, DataFixers.getDataFixer(), this.console.options.has("eraseCache"), () -> true, iregistry);
+ }
+
+- long j = BiomeManager.obfuscateSeed(creator.seed());
++ long j = BiomeManager.obfuscateSeed(worlddata.worldGenOptions().seed()); // Paper - use world seed
+ List<CustomSpawner> list = ImmutableList.of(new PhantomSpawner(), new PatrolSpawner(), new CatSpawner(), new VillageSiege(), new WanderingTraderSpawner(worlddata));
+ LevelStem worlddimension = iregistry.get(actualDimension);
+