Skip to content

Commit f67e5ff

Browse files
committed
cleanup
1 parent 7fcf42f commit f67e5ff

File tree

13 files changed

+65
-64
lines changed

13 files changed

+65
-64
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ dependencies {
3434

3535
modImplementation("net.fabricmc:fabric-loader:$fabricLoaderVersion")
3636

37-
modImplementation("dev.isxander:yet-another-config-lib:1.1.0")
37+
modImplementation("dev.isxander:yet-another-config-lib:1.5.0")
3838
modImplementation("com.terraformersmc:modmenu:4.0.6")
3939

40-
"com.github.llamalad7:mixinextras:0.0.+".let {
40+
"com.github.llamalad7:mixinextras:0.0.12".let {
4141
implementation(it)
4242
annotationProcessor(it)
4343
include(it)

changelogs/1.0.6.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Switch to YACL ([get it here](https://curseforge.com/minecraft/mc-mods/yacl)) over cloth config.
2+
- Config now uses JSON instead of TOML so your config will get reset.

src/main/java/dev/isxander/culllessleaves/CullLessLeaves.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public void onInitializeClient() {
2929
});
3030

3131
getConfig().load();
32-
//AutoConfig.register(CullLessLeavesConfig.class, Toml4jConfigSerializer::new);
3332
}
3433

3534
@Override

src/main/java/dev/isxander/culllessleaves/config/CullLessLeavesConfig.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ public void load() {
6161

6262
public Screen makeScreen(Screen parent) {
6363
return YetAnotherConfigLib.createBuilder()
64-
.title(Text.translatable("text.autoconfig.cull-less-leaves.title"))
64+
.title(Text.translatable("cull-less-leaves.title"))
6565
.category(ConfigCategory.createBuilder()
66-
.name(Text.translatable("text.autoconfig.cull-less-leaves.title"))
66+
.name(Text.translatable("cull-less-leaves.title"))
6767
.option(Option.createBuilder(boolean.class)
68-
.name(Text.translatable("text.autoconfig.cull-less-leaves.option.enabled"))
68+
.name(Text.translatable("cull-less-leaves.option.enabled"))
6969
.binding(
7070
true,
7171
() -> enabled,
@@ -74,8 +74,8 @@ public Screen makeScreen(Screen parent) {
7474
.controller(TickBoxController::new)
7575
.build())
7676
.option(Option.createBuilder(int.class)
77-
.name(Text.translatable("text.autoconfig.cull-less-leaves.option.depth"))
78-
.tooltip(Text.translatable("text.autoconfig.cull-less-leaves.option.depth.@Tooltip"))
77+
.name(Text.translatable("cull-less-leaves.option.depth"))
78+
.tooltip(Text.translatable("cull-less-leaves.option.depth.tooltip"))
7979
.binding(
8080
2,
8181
() -> depth,

src/main/java/dev/isxander/culllessleaves/mixins/sodiumcompat/SodiumGameOptionPagesMixin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ public class SodiumGameOptionPagesMixin {
2222
private static List<OptionGroup> addLeavesCulling(List<OptionGroup> groups) {
2323
groups.add(OptionGroup.createBuilder()
2424
.add(OptionImpl.createBuilder(boolean.class, SodiumCompat.getOptionStorage())
25-
.setName(Text.translatable("text.cull-less-leaves.sodium.option.enabled"))
26-
.setTooltip(Text.translatable("text.cull-less-leaves.sodium.option.enabled.description"))
25+
.setName(Text.translatable("cull-less-leaves.sodium.option.enabled"))
26+
.setTooltip(Text.translatable("cull-less-leaves.sodium.option.enabled.description"))
2727
.setControl(TickBoxControl::new)
2828
.setBinding((opts, value) -> opts.enabled = value, opts -> opts.enabled)
2929
.setImpact(OptionImpact.MEDIUM)
3030
.setFlags(OptionFlag.REQUIRES_RENDERER_RELOAD)
3131
.build()
3232
)
3333
.add(OptionImpl.createBuilder(int.class, SodiumCompat.getOptionStorage())
34-
.setName(Text.translatable("text.cull-less-leaves.sodium.option.depth"))
35-
.setTooltip(Text.translatable("text.autoconfig.cull-less-leaves.option.depth.@Tooltip"))
34+
.setName(Text.translatable("cull-less-leaves.sodium.option.depth"))
35+
.setTooltip(Text.translatable("cull-less-leaves.option.depth.tooltip"))
3636
.setControl(o -> new SliderControl(o, 1, 4, 1, ControlValueFormatter.number()))
3737
.setBinding((opts, value) -> opts.depth = value, opts -> opts.depth)
3838
.setImpact(OptionImpact.MEDIUM)
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"text.autoconfig.cull-less-leaves.title": "Cull Less Leaves",
3-
"text.autoconfig.cull-less-leaves.option.enabled": "Enabled",
4-
"text.autoconfig.cull-less-leaves.option.depth": "Depth",
5-
"text.autoconfig.cull-less-leaves.option.depth.@Tooltip": "Amount of layers of leaves before the inside of the leaves is culled.\n1 = Fastest but least good-looking.\n2 = Recommended.\n4 = Slowest but most good-looking.",
6-
"text.cull-less-leaves.sodium.option.enabled": "Cull Leaves",
7-
"text.cull-less-leaves.sodium.option.enabled.description": "Enables Cull Less Leaves mod.",
8-
"text.cull-less-leaves.sodium.option.depth": "Cull Leaves Depth"
2+
"cull-less-leaves.title": "Cull Less Leaves",
3+
"cull-less-leaves.option.enabled": "Enabled",
4+
"cull-less-leaves.option.depth": "Depth",
5+
"cull-less-leaves.option.depth.tooltip": "Amount of layers of leaves before the inside of the leaves is culled.\n1 = Fastest but least good-looking.\n2 = Recommended.\n4 = Slowest but most good-looking.",
6+
"cull-less-leaves.sodium.option.enabled": "Cull Leaves",
7+
"cull-less-leaves.sodium.option.enabled.description": "Enables Cull Less Leaves mod.",
8+
"cull-less-leaves.sodium.option.depth": "Cull Leaves Depth"
99
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"text.autoconfig.cull-less-leaves.title": "Cull Less Leaves",
3-
"text.autoconfig.cull-less-leaves.option.enabled": "Lubatud",
4-
"text.autoconfig.cull-less-leaves.option.depth": "Sügavus",
5-
"text.autoconfig.cull-less-leaves.option.depth.@Tooltip": "Kuvatavate lehekihtide arv enne, kui lehtede sisemus nähtamatuks tehakse.\n1 = Kiireim, kuid halvima väljanägemisega.\n2 = Soovitatud.\n4 = Aeglaseim, kuid parima väljanägemisega.",
6-
"text.cull-less-leaves.sodium.option.enabled": "Lehtede eraldus",
7-
"text.cull-less-leaves.sodium.option.enabled.description": "Lubab modi Cull Less Leaves.",
8-
"text.cull-less-leaves.sodium.option.depth": "Lehtede nähtamatuse sügavus"
2+
"cull-less-leaves.title": "Cull Less Leaves",
3+
"cull-less-leaves.option.enabled": "Lubatud",
4+
"cull-less-leaves.option.depth": "Sügavus",
5+
"cull-less-leaves.option.depth.tooltip": "Kuvatavate lehekihtide arv enne, kui lehtede sisemus nähtamatuks tehakse.\n1 = Kiireim, kuid halvima väljanägemisega.\n2 = Soovitatud.\n4 = Aeglaseim, kuid parima väljanägemisega.",
6+
"cull-less-leaves.sodium.option.enabled": "Lehtede eraldus",
7+
"cull-less-leaves.sodium.option.enabled.description": "Lubab modi Cull Less Leaves.",
8+
"cull-less-leaves.sodium.option.depth": "Lehtede nähtamatuse sügavus"
99
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"text.autoconfig.cull-less-leaves.title": "Cull Less Leaves",
3-
"text.autoconfig.cull-less-leaves.option.enabled": "Activé",
4-
"text.autoconfig.cull-less-leaves.option.depth": "Profondeur",
5-
"text.autoconfig.cull-less-leaves.option.depth.@Tooltip": "Nombre de couches de feuilles avant que l'intérieur des feuilles ne soit masqué.\n1 = Le plus rapide, mais le moins beau.\n2 = Recommandé.\n4 = Le plus lent, mais le plus beau.",
6-
"text.cull-less-leaves.sodium.option.enabled": "Masquage de feuilles",
7-
"text.cull-less-leaves.sodium.option.enabled.description": "Active le mod Cull Less Leaves.",
8-
"text.cull-less-leaves.sodium.option.depth": "Profondeur de Masquage des feuilles"
2+
"cull-less-leaves.title": "Cull Less Leaves",
3+
"cull-less-leaves.option.enabled": "Activé",
4+
"cull-less-leaves.option.depth": "Profondeur",
5+
"cull-less-leaves.option.depth.tooltip": "Nombre de couches de feuilles avant que l'intérieur des feuilles ne soit masqué.\n1 = Le plus rapide, mais le moins beau.\n2 = Recommandé.\n4 = Le plus lent, mais le plus beau.",
6+
"cull-less-leaves.sodium.option.enabled": "Masquage de feuilles",
7+
"cull-less-leaves.sodium.option.enabled.description": "Active le mod Cull Less Leaves.",
8+
"cull-less-leaves.sodium.option.depth": "Profondeur de Masquage des feuilles"
99
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"text.autoconfig.cull-less-leaves.title": "Cull Less Leaves",
3-
"text.autoconfig.cull-less-leaves.option.enabled": "Attivo",
4-
"text.autoconfig.cull-less-leaves.option.depth": "Spessore",
5-
"text.autoconfig.cull-less-leaves.option.depth.@Tooltip": "Quantità di strati di foglie prima che l'interno delle foglie venga eliminato.\n1 = Più veloce ma meno bello.\n2 = Consigliato.\n4 = Più lento ma più bello.",
6-
"text.cull-less-leaves.sodium.option.enabled": "Culling delle foglie",
7-
"text.cull-less-leaves.sodium.option.enabled.description": "Attiva la mod Cull Less Leaves.",
8-
"text.cull-less-leaves.sodium.option.depth": "Spessore del culling delle foglie"
2+
"cull-less-leaves.title": "Cull Less Leaves",
3+
"cull-less-leaves.option.enabled": "Attivo",
4+
"cull-less-leaves.option.depth": "Spessore",
5+
"cull-less-leaves.option.depth.tooltip": "Quantità di strati di foglie prima che l'interno delle foglie venga eliminato.\n1 = Più veloce ma meno bello.\n2 = Consigliato.\n4 = Più lento ma più bello.",
6+
"cull-less-leaves.sodium.option.enabled": "Culling delle foglie",
7+
"cull-less-leaves.sodium.option.enabled.description": "Attiva la mod Cull Less Leaves.",
8+
"cull-less-leaves.sodium.option.depth": "Spessore del culling delle foglie"
99
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"text.autoconfig.cull-less-leaves.title": "Cull Less Leaves",
3-
"text.autoconfig.cull-less-leaves.option.enabled": "활성화됨",
4-
"text.autoconfig.cull-less-leaves.option.depth": "깊이",
5-
"text.autoconfig.cull-less-leaves.option.depth.@Tooltip": "잎의 안쪽이 컬링 되기 전의 잎들의 양.\n1 = 가장 빠르지만 보기에 좋지 않음.\n2 = 추천 값.\n4 = 가장 느리지만 가장 보기 좋음.",
6-
"text.cull-less-leaves.sodium.option.enabled": "잎 컬링",
7-
"text.cull-less-leaves.sodium.option.enabled.description": "Cull Less Leaves 모드를 활성화합니다.",
8-
"text.cull-less-leaves.sodium.option.depth": "잎 컬링 깊이"
2+
"cull-less-leaves.title": "Cull Less Leaves",
3+
"cull-less-leaves.option.enabled": "활성화됨",
4+
"cull-less-leaves.option.depth": "깊이",
5+
"cull-less-leaves.option.depth.tooltip": "잎의 안쪽이 컬링 되기 전의 잎들의 양.\n1 = 가장 빠르지만 보기에 좋지 않음.\n2 = 추천 값.\n4 = 가장 느리지만 가장 보기 좋음.",
6+
"cull-less-leaves.sodium.option.enabled": "잎 컬링",
7+
"cull-less-leaves.sodium.option.enabled.description": "Cull Less Leaves 모드를 활성화합니다.",
8+
"cull-less-leaves.sodium.option.depth": "잎 컬링 깊이"
99
}

0 commit comments

Comments
 (0)