From f3af6ce74b990fe7ffcde9705b88f8b0d49ba93c Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 2 Nov 2024 13:06:27 -0500 Subject: [PATCH] add recalculate heightmap config (disabled by default) --- .../seibel/distanthorizons/core/config/Config.java | 13 +++++++++++++ .../assets/distanthorizons/lang/en_us.json | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java b/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java index c8440cd9d..1dd476e92 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/config/Config.java @@ -1268,6 +1268,19 @@ public class Config + "Expected Compression Ratio: 0.7\n" + "") .build(); + + public static ConfigEntry recalculateChunkHeightmaps = new ConfigEntry.Builder() + .set(false) + .comment("" + + "True: Recalculate chunk height maps before chunks can be used by DH.\n" + + " This can fix problems with worlds created by World Painter or \n" + + " other external tools where the heightmap format may be incorrect. \n" + + "False: Assume any height maps handled by Minecraft are correct. \n" + + "\n" + + "Fastest: False\n" + + "Most Compatible: True\n" + + "") + .build(); } public static class MultiThreading diff --git a/core/src/main/resources/assets/distanthorizons/lang/en_us.json b/core/src/main/resources/assets/distanthorizons/lang/en_us.json index 10236c0ca..80675ad7b 100644 --- a/core/src/main/resources/assets/distanthorizons/lang/en_us.json +++ b/core/src/main/resources/assets/distanthorizons/lang/en_us.json @@ -571,6 +571,10 @@ "Lossy World Compression", "distanthorizons.config.common.lodBuilding.worldCompression.@tooltip": "How should block data be compressed when creating LOD data? \nThis setting will only affect new or updated LOD data, \nany data already generated when this setting is changed will be \nunaffected until it is modified or re-loaded. \n\nMost Accurate: Merge Same Blocks \nHighest Compression: Visually Equal", + "distanthorizons.config.common.lodBuilding.recalculateChunkHeightmaps": + "Recalculate Chunk Heightmaps", + "distanthorizons.config.common.lodBuilding.recalculateChunkHeightmaps.@tooltip": + "True: Recalculate chunk height maps before chunks can be used by DH. This can fix problems with worlds created by external tools. \nFalse: Assume any height maps handled by Minecraft are correct. \n\nFastest: False\nMost Compatible: True", "distanthorizons.config.common.lodBuilding.showMigrationChatWarning": "Log Migration In Chat",