Merge branch 'detached' into 'main'

Make renderingString show correct value if rendering is disabled for this dimension

See merge request distant-horizons-team/distant-horizons-core!100
This commit is contained in:
James Seibel
2026-05-17 00:07:10 +00:00
3 changed files with 13 additions and 5 deletions
@@ -21,6 +21,7 @@ package com.seibel.distanthorizons.core.level;
import com.google.common.cache.CacheBuilder;
import com.seibel.distanthorizons.core.config.Config;
import com.seibel.distanthorizons.core.config.eventHandlers.IgnoredDimensionCsvHandler;
import com.seibel.distanthorizons.core.dataObjects.fullData.sources.FullDataSourceV2;
import com.seibel.distanthorizons.core.dependencyInjection.SingletonInjector;
import com.seibel.distanthorizons.core.enums.MinecraftTextFormat;
@@ -333,12 +334,15 @@ public class DhClientLevel extends AbstractDhLevel implements IDhClientLevel
String o = MinecraftTextFormat.ORANGE;
String y = MinecraftTextFormat.YELLOW;
String g = MinecraftTextFormat.GREEN;
String r = MinecraftTextFormat.RED;
String cf = MinecraftTextFormat.CLEAR_FORMATTING;
String dimName = this.levelWrapper.getDhIdentifier();
boolean rendering = this.clientside.isRendering();
String renderingString = rendering ? (g+"yes"+cf) : (o+"no"+cf);
boolean rendering =
this.clientside.isRendering()
&& !IgnoredDimensionCsvHandler.INSTANCE.dimensionNameShouldBeIgnored(dimName);
String renderingString = rendering ? (g+"yes"+cf) : (r+"no"+cf);
messageList.add("["+y+dimName+cf+"] rendering: "+renderingString);
@@ -19,6 +19,7 @@
package com.seibel.distanthorizons.core.level;
import com.seibel.distanthorizons.core.config.eventHandlers.IgnoredDimensionCsvHandler;
import com.seibel.distanthorizons.core.dependencyInjection.SingletonInjector;
import com.seibel.distanthorizons.core.enums.MinecraftTextFormat;
import com.seibel.distanthorizons.core.file.structure.ISaveStructure;
@@ -121,12 +122,15 @@ public class DhClientServerLevel extends AbstractDhServerLevel implements IDhCli
String o = MinecraftTextFormat.ORANGE;
String y = MinecraftTextFormat.YELLOW;
String g = MinecraftTextFormat.GREEN;
String r = MinecraftTextFormat.RED;
String cf = MinecraftTextFormat.CLEAR_FORMATTING;
String dimName = this.serverLevelWrapper.getDhIdentifier();
boolean rendering = this.clientside.isRendering();
String renderingString = rendering ? (g+"yes"+cf) : (o+"no"+cf);
boolean rendering =
this.clientside.isRendering()
&& !IgnoredDimensionCsvHandler.INSTANCE.dimensionNameShouldBeIgnored(dimName);
String renderingString = rendering ? (g+"yes"+cf) : (r+"no"+cf);
messageList.add("["+y+dimName+cf+"] rendering: "+renderingString);
super.addDebugMenuStringsToList(messageList);
@@ -394,7 +394,7 @@
"distanthorizons.config.client.advanced.graphics.experimental.ignoredDimensionCsv":
"Ignored Dimension CSV",
"distanthorizons.config.client.advanced.graphics.experimental.ignoredDimensionCsv.@tooltip":
"A comma separated list of dimension resource locations where DH won't render. Example: \"minecraft:the_nether,minecraft:the_end\" \n\nNote: \nSome DH settings will be disabled and/or changed to improve \nvisuals when DH rendering is disabled.",
"A comma separated list of dimension resource locations where DH won't render. Example: \"minecraft:the_nether,minecraft:the_end\" \n\nFor Minecraft 1.12.2 and older:\nOpen the F3 screen and copy the dimension name shown in yellow.\n\nNote: \nSome DH settings will be disabled and/or changed to improve \nvisuals when DH rendering is disabled.",
"distanthorizons.config.client.advanced.graphics.experimental.renderingApi":
"Rendering API",
"distanthorizons.config.client.advanced.graphics.experimental.renderingApi.@tooltip":