testserver/patches/server/0249-Restore-vanlla-default...

21 lines
902 B
Diff
Raw Normal View History

2021-06-11 12:02:28 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Sat, 18 Aug 2018 12:43:16 -0400
Subject: [PATCH] Restore vanlla 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
2021-11-30 07:32:30 +00:00
index af8c42ed04d9a79cd426bdaa8c2ee3feac1163e3..1414c7cd14ef3d8ce22e6c146c942d12901d4811 100644
2021-06-11 12:02:28 +00:00
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
@@ -178,7 +178,7 @@ public class SpigotWorldConfig
2021-06-11 12:02:28 +00:00
public byte mobSpawnRange;
private void mobSpawnRange()
{
2021-06-12 23:45:00 +00:00
- 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 );
2021-06-11 12:02:28 +00:00
}