diff options
Diffstat (limited to 'CraftBukkit-Patches/0151-Further-Seed-Customisation.patch')
-rw-r--r-- | CraftBukkit-Patches/0151-Further-Seed-Customisation.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0151-Further-Seed-Customisation.patch b/CraftBukkit-Patches/0151-Further-Seed-Customisation.patch new file mode 100644 index 0000000000..4c86c6abca --- /dev/null +++ b/CraftBukkit-Patches/0151-Further-Seed-Customisation.patch @@ -0,0 +1,54 @@ +From 2c7348988b9714bd0a220946e62a03ba8f5944ef Mon Sep 17 00:00:00 2001 +From: md_5 <[email protected]> +Date: Fri, 4 Jul 2014 13:28:45 +1000 +Subject: [PATCH] Further Seed Customisation + +Allow server admins that really want to to customise the seeds used in world generation even further. + +diff --git a/src/main/java/net/minecraft/server/WorldGenLargeFeature.java b/src/main/java/net/minecraft/server/WorldGenLargeFeature.java +index 1e5efc4..72f5d10 100644 +--- a/src/main/java/net/minecraft/server/WorldGenLargeFeature.java ++++ b/src/main/java/net/minecraft/server/WorldGenLargeFeature.java +@@ -53,7 +53,7 @@ public class WorldGenLargeFeature extends StructureGenerator { + + int i1 = i / this.g; + int j1 = j / this.g; +- Random random = this.c.A(i1, j1, 14357617); ++ Random random = this.c.A(i1, j1, this.c.spigotConfig.largeFeatureSeed); // Spigot + + i1 *= this.g; + j1 *= this.g; +diff --git a/src/main/java/net/minecraft/server/WorldGenVillage.java b/src/main/java/net/minecraft/server/WorldGenVillage.java +index 7ca18a1..8d1721a 100644 +--- a/src/main/java/net/minecraft/server/WorldGenVillage.java ++++ b/src/main/java/net/minecraft/server/WorldGenVillage.java +@@ -52,7 +52,7 @@ public class WorldGenVillage extends StructureGenerator { + + int i1 = i / this.g; + int j1 = j / this.g; +- Random random = this.c.A(i1, j1, 10387312); ++ Random random = this.c.A(i1, j1, this.c.spigotConfig.villageSeed); // Spigot + + i1 *= this.g; + j1 *= this.g; +diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java +index a81b7c9..fd79b25 100644 +--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java ++++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java +@@ -317,4 +317,13 @@ public class SpigotWorldConfig + { + witherSpawnSoundRadius = getInt( "wither-spawn-sound-radius", 0 ); + } ++ ++ public int villageSeed; ++ public int largeFeatureSeed; ++ private void initWorldGenSeeds() ++ { ++ villageSeed = getInt( "seed-village", 10387312 ); ++ largeFeatureSeed = getInt( "seed-feature", 14357617 ); ++ log( "Custom Map Seeds: Village: " + villageSeed + " Feature: " + largeFeatureSeed ); ++ } + } +-- +1.9.1 + |