Add dev override for max view distance

This commit is contained in:
Spottedleaf
2024-09-04 16:01:57 -07:00
parent d21fa9f48c
commit 5d1975154b
2 changed files with 2 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ public final class ConfigHolder {
program arguments.
-DMoonrise.ConfigFile=<file> - Override the config file location. Might be useful for multiple game versions.
-DMoonrise.WorkerThreadCount=<number> - Override the auto configured worker thread counts (worker-threads).
-DMoonrise.MaxViewDistance=<number> - Overrides the maximum view distance, should only use for debugging purposes.
""";
static {

View File

@@ -2,7 +2,7 @@ package ca.spottedleaf.moonrise.common.util;
public final class MoonriseConstants {
public static final int MAX_VIEW_DISTANCE = 32;
public static final int MAX_VIEW_DISTANCE = Integer.getInteger("Moonrise.MaxViewDistance", 32);
private MoonriseConstants() {}