mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Change item/xp merge and entity tracking range defaults (#10986)
This commit is contained in:
parent
17824b557c
commit
d097e7cec1
2 changed files with 42 additions and 1 deletions
|
@ -751,7 +751,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
||||||
@@ -0,0 +0,0 @@ public class SpigotWorldConfig
|
@@ -0,0 +0,0 @@ public class SpigotWorldConfig
|
||||||
public int monsterActivationRange = 32;
|
public int monsterActivationRange = 32;
|
||||||
public int raiderActivationRange = 48;
|
public int raiderActivationRange = 64;
|
||||||
public int miscActivationRange = 16;
|
public int miscActivationRange = 16;
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ public int flyingMonsterActivationRange = 32;
|
+ public int flyingMonsterActivationRange = 32;
|
||||||
|
|
|
@ -5111,6 +5111,47 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
}
|
}
|
||||||
|
|
||||||
public <T> List getList(String path, T def)
|
public <T> 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
|
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
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
|
||||||
|
|
Loading…
Reference in a new issue