From d097e7cec16982e4191efe6bbba2ef6e47a7d69d Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 27 Jun 2024 22:08:34 +0200 Subject: [PATCH] Change item/xp merge and entity tracking range defaults (#10986) --- .../server/Entity-Activation-Range-2.0.patch | 2 +- patches/server/Paper-config-files.patch | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/patches/server/Entity-Activation-Range-2.0.patch b/patches/server/Entity-Activation-Range-2.0.patch index cb3fced01d..c520ffd0b3 100644 --- a/patches/server/Entity-Activation-Range-2.0.patch +++ b/patches/server/Entity-Activation-Range-2.0.patch @@ -751,7 +751,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 +++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java @@ -0,0 +0,0 @@ public class SpigotWorldConfig public int monsterActivationRange = 32; - public int raiderActivationRange = 48; + public int raiderActivationRange = 64; public int miscActivationRange = 16; + // Paper start + public int flyingMonsterActivationRange = 32; diff --git a/patches/server/Paper-config-files.patch b/patches/server/Paper-config-files.patch index 73db1cb4dc..4260f96d46 100644 --- a/patches/server/Paper-config-files.patch +++ b/patches/server/Paper-config-files.patch @@ -5111,6 +5111,47 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } public List getList(String path, T def) +@@ -0,0 +0,0 @@ public class SpigotWorldConfig + public double itemMerge; + private void itemMerge() + { +- this.itemMerge = this.getDouble("merge-radius.item", 2.5 ); ++ this.itemMerge = this.getDouble("merge-radius.item", 0.5 ); + this.log( "Item Merge Radius: " + this.itemMerge ); + } + + public double expMerge; + private void expMerge() + { +- this.expMerge = this.getDouble("merge-radius.exp", 3.0 ); ++ this.expMerge = this.getDouble("merge-radius.exp", -1 ); + this.log( "Experience Merge Radius: " + this.expMerge ); + } + +@@ -0,0 +0,0 @@ public class SpigotWorldConfig + + public int animalActivationRange = 32; + public int monsterActivationRange = 32; +- public int raiderActivationRange = 48; ++ public int raiderActivationRange = 64; + public int miscActivationRange = 16; + public boolean tickInactiveVillagers = true; + public boolean ignoreSpectatorActivation = false; +@@ -0,0 +0,0 @@ public class SpigotWorldConfig + this.log( "Entity Activation Range: An " + this.animalActivationRange + " / Mo " + this.monsterActivationRange + " / Ra " + this.raiderActivationRange + " / Mi " + this.miscActivationRange + " / Tiv " + this.tickInactiveVillagers + " / Isa " + this.ignoreSpectatorActivation ); + } + +- public int playerTrackingRange = 48; +- public int animalTrackingRange = 48; +- public int monsterTrackingRange = 48; +- public int miscTrackingRange = 32; ++ public int playerTrackingRange = 128; ++ public int animalTrackingRange = 96; ++ public int monsterTrackingRange = 96; ++ public int miscTrackingRange = 96; + public int displayTrackingRange = 128; + public int otherTrackingRange = 64; + private void trackingRange() diff --git a/src/test/java/io/papermc/paper/configuration/GlobalConfigTestingBase.java b/src/test/java/io/papermc/paper/configuration/GlobalConfigTestingBase.java new file mode 100644 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000