From 23a0cc8b9a69d8cde10ae74f9ab19ba4c612ffe6 Mon Sep 17 00:00:00 2001 From: ACGaming <4818419+ACGaming@users.noreply.github.com> Date: Mon, 28 Oct 2024 23:14:09 +0100 Subject: [PATCH] Simplify Cave Generation tweak config values --- .../universaltweaks/config/UTConfigTweaks.java | 12 ++++++------ .../tweaks/world/cavegen/mixin/UTCaveGenMixin.java | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/mod/acgaming/universaltweaks/config/UTConfigTweaks.java b/src/main/java/mod/acgaming/universaltweaks/config/UTConfigTweaks.java index 92615b44..d7d8be44 100644 --- a/src/main/java/mod/acgaming/universaltweaks/config/UTConfigTweaks.java +++ b/src/main/java/mod/acgaming/universaltweaks/config/UTConfigTweaks.java @@ -2283,23 +2283,23 @@ public static class CaveGenCategory @Config.Comment("Sets custom values for the vanilla cave generation") public boolean utCaveGenToggle = false; - @Config.Name("[2] Random Iterations") + @Config.Name("[2] Cave Size") @Config.Comment ({ - "Bound for the random chance to recursively generate rooms and tunnels", + "Size of cave systems", "40 for pre-1.7 generation", "15 for vanilla default" }) - public int utCaveGenIterations = 15; + public int utCaveGenSize = 15; - @Config.Name("[3] Random Iteration Breaks") + @Config.Name("[3] Cave Rarity") @Config.Comment ({ - "Bound for the random chance to stop recursively generate rooms and tunnels", + "Chance for generating cave systems", "15 for pre-1.7 generation", "7 for vanilla default" }) - public int utCaveGenIterationBreaks = 7; + public int utCaveGenRarity = 7; } public static class ChunkGenLimitCategory diff --git a/src/main/java/mod/acgaming/universaltweaks/tweaks/world/cavegen/mixin/UTCaveGenMixin.java b/src/main/java/mod/acgaming/universaltweaks/tweaks/world/cavegen/mixin/UTCaveGenMixin.java index 71dacf1c..3064fa98 100644 --- a/src/main/java/mod/acgaming/universaltweaks/tweaks/world/cavegen/mixin/UTCaveGenMixin.java +++ b/src/main/java/mod/acgaming/universaltweaks/tweaks/world/cavegen/mixin/UTCaveGenMixin.java @@ -12,14 +12,14 @@ public abstract class UTCaveGenMixin { @ModifyArg(method = "recursiveGenerate", at = @At(value = "INVOKE", target = "Ljava/util/Random;nextInt(I)I", ordinal = 2)) - public int utCaveGenIterations(int bound) + public int utCaveGenSize(int bound) { - return UTConfigTweaks.WORLD.CAVE_GEN.utCaveGenIterations; + return UTConfigTweaks.WORLD.CAVE_GEN.utCaveGenSize; } @ModifyArg(method = "recursiveGenerate", at = @At(value = "INVOKE", target = "Ljava/util/Random;nextInt(I)I", ordinal = 3)) - public int utCaveGenIterationBreaks(int bound) + public int utCaveGenRarity(int bound) { - return UTConfigTweaks.WORLD.CAVE_GEN.utCaveGenIterationBreaks; + return UTConfigTweaks.WORLD.CAVE_GEN.utCaveGenRarity; } } \ No newline at end of file