aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0229-Restore-vanilla-default-mob-spawn-range-and-water-an.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-12-03 19:05:31 +0100
committerNassim Jahnke <[email protected]>2024-12-03 19:05:31 +0100
commitab9a3db5ba76384531ad52299344dea588a367b2 (patch)
tree7e91be513aa8e62596b332a159691d67f79323c7 /patches/server/0229-Restore-vanilla-default-mob-spawn-range-and-water-an.patch
parent172c7dc7e7ee96fceaa2586d9cd9d892184f9a39 (diff)
downloadPaper-ab9a3db5ba76384531ad52299344dea588a367b2.tar.gz
Paper-ab9a3db5ba76384531ad52299344dea588a367b2.zip
More work
Diffstat (limited to 'patches/server/0229-Restore-vanilla-default-mob-spawn-range-and-water-an.patch')
-rw-r--r--patches/server/0229-Restore-vanilla-default-mob-spawn-range-and-water-an.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/server/0229-Restore-vanilla-default-mob-spawn-range-and-water-an.patch b/patches/server/0229-Restore-vanilla-default-mob-spawn-range-and-water-an.patch
new file mode 100644
index 0000000000..0ed98b85c4
--- /dev/null
+++ b/patches/server/0229-Restore-vanilla-default-mob-spawn-range-and-water-an.patch
@@ -0,0 +1,20 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+Date: Sat, 18 Aug 2018 12:43:16 -0400
+Subject: [PATCH] Restore vanilla default mob-spawn-range and water animals
+ limit
+
+
+diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
+index 8bc7a9da0eb345e65f42461e2fb22731eb80790a..c4acaec8d331b4600c7b8b28fa969de9645938da 100644
+--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
++++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
+@@ -190,7 +190,7 @@ public class SpigotWorldConfig
+ public byte mobSpawnRange;
+ private void mobSpawnRange()
+ {
+- this.mobSpawnRange = (byte) this.getInt( "mob-spawn-range", 6 );
++ this.mobSpawnRange = (byte) getInt( "mob-spawn-range", 8 ); // Paper - Vanilla
+ this.log( "Mob Spawn Range: " + this.mobSpawnRange );
+ }
+