Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion patches/net/minecraft/world/World.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@
+ // Keep chunks with growth inside of the optimal chunk range
+ int chunksPerPlayer = Math.min(200, Math.max(1, (int) (((optimalChunks - playerEntities.size()) / (double) playerEntities.size()) + 0.5)));
+ // Cauldron start - use server view distance instead of capping it at 7
+ int randRange = this.func_152379_p();
+ int randRange = Math.min(this.getSpigotConfig().tickDistance, this.func_152379_p());
+ if (randRange < 1)
+ {
+ throw new IllegalArgumentException("Too small view radius! edit server.properties and change view-distance to a value > 0.");
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/spigotmc/SpigotWorldConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class SpigotWorldConfig {
public double itemMerge;
public double expMerge;
public int viewDistance;
public int tickDistance;
public byte mobSpawnRange;
public int animalActivationRange = 32;
public int monsterActivationRange = 32;
Expand Down Expand Up @@ -147,6 +148,11 @@ private void viewDistance() {
log("View Distance: " + viewDistance);
}

private void tickDistance() {
tickDistance = getInt("tick-distance", Bukkit.getViewDistance());
log("Tick Distance: " + tickDistance);
}

private void mobSpawnRange() {
mobSpawnRange = (byte) getInt("mob-spawn-range", 4);
log("Mob Spawn Range: " + mobSpawnRange);
Expand Down