aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0234-Restore-vanilla-default-mob-spawn-range-and-water-an.patch
diff options
context:
space:
mode:
authorRiley Park <[email protected]>2024-05-15 17:06:59 -0700
committerGitHub <[email protected]>2024-05-15 17:06:59 -0700
commitf17519338bc589c045e0b32bfc37e048b23544d5 (patch)
treee50182ec698b4a9de8f366f485ee089b1901bbd9 /patches/server/0234-Restore-vanilla-default-mob-spawn-range-and-water-an.patch
parent3fc93581bb876e8149b2ca423375a98f5ca12d27 (diff)
downloadPaper-f17519338bc589c045e0b32bfc37e048b23544d5.tar.gz
Paper-f17519338bc589c045e0b32bfc37e048b23544d5.zip
Expose server build information (#10729)
* Expose server build information * squash patches * final tweaks --------- Co-authored-by: Jake Potrebic <[email protected]> Co-authored-by: masmc05 <[email protected]>
Diffstat (limited to 'patches/server/0234-Restore-vanilla-default-mob-spawn-range-and-water-an.patch')
-rw-r--r--patches/server/0234-Restore-vanilla-default-mob-spawn-range-and-water-an.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/server/0234-Restore-vanilla-default-mob-spawn-range-and-water-an.patch b/patches/server/0234-Restore-vanilla-default-mob-spawn-range-and-water-an.patch
new file mode 100644
index 0000000000..aa9cfcc962
--- /dev/null
+++ b/patches/server/0234-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 8491ff48051224204b58d273c4971d16ab8867c1..81c76360e8c7389bafd61f38e6782668e8c65d27 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 );
+ }
+