From bff4797ab45bf095258f0065727a78bae5b4dc3b Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 2 Jul 2022 21:57:30 -0500 Subject: [PATCH] Add a missing graphic api method --- .../config/client/graphics/DhApiGraphics.java | 8 ++++++++ .../java/com/seibel/lod/core/config/Config.java | 14 +++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/seibel/lod/core/api/external/config/client/graphics/DhApiGraphics.java b/src/main/java/com/seibel/lod/core/api/external/config/client/graphics/DhApiGraphics.java index 0cd558d39..373a4feba 100644 --- a/src/main/java/com/seibel/lod/core/api/external/config/client/graphics/DhApiGraphics.java +++ b/src/main/java/com/seibel/lod/core/api/external/config/client/graphics/DhApiGraphics.java @@ -147,6 +147,14 @@ public class DhApiGraphics public static IDhApiConfig getEarthCurvatureRatioConfig() { return new DhApiConfig<>(AdvancedGraphics.earthCurveRatio); } + /** + * Returns the config related to whether Distant Horizons' + * should disable vanilla rendering so only Distant Horizons' + * fake chunks are rendered. + */ + public static IDhApiConfig getEnableLodOnlyModeConfig() + { return new DhApiConfig<>(Config.Client.Advanced.lodOnlyMode); } + } diff --git a/src/main/java/com/seibel/lod/core/config/Config.java b/src/main/java/com/seibel/lod/core/config/Config.java index 7f92ba652..a85f1ad1c 100644 --- a/src/main/java/com/seibel/lod/core/config/Config.java +++ b/src/main/java/com/seibel/lod/core/config/Config.java @@ -664,11 +664,11 @@ public class Config public static ConfigEntry lodOnlyMode = new ConfigEntry.Builder() .set(false) .comment("" - + "Due to some demand for playing without vanilla terrains, \n" + + " Due to some demand for playing without vanilla terrain, \n" + " we decided to add this mode for fun. \n" + "\n" - + "NOTE: Do not report any issues when this mode is on! \n" - + " Again, this setting is only for fun, and mod \n" + + " NOTE: Do not report any issues when this mode is on! \n" + + " This setting is only for fun, and mod \n" + " compatibility is not guaranteed.") .build(); @@ -680,17 +680,17 @@ public class Config (double) Math.min(Runtime.getRuntime().availableProcessors()/2, 4), (double) Runtime.getRuntime().availableProcessors()) .comment("" - + "How many threads should be used when generating fake \n" + + " How many threads should be used when generating fake \n" + " chunks outside the normal render distance? \n" + "\n" - + "If it's less than 1, it will be treated as a percentage \n" + + " If it's less than 1, it will be treated as a percentage \n" + " of time single thread can run before going to idle. \n" + "\n" - + "If you experience stuttering when generating distant LODs, \n" + + " If you experience stuttering when generating distant LODs, \n" + " decrease this number. If you want to increase LOD \n" + " generation speed, increase this number. \n" + "\n" - + "This and the number of buffer builder threads are independent, \n" + + " This and the number of buffer builder threads are independent, \n" + " so if they add up to more threads than your CPU has cores, \n" + " that shouldn't cause an issue.") .build();