From 38fb641cfe7b227f54ab1f1aaeb5a376ef33ff31 Mon Sep 17 00:00:00 2001 From: Bawnorton Date: Sun, 17 Nov 2024 18:24:21 -0800 Subject: [PATCH] fix descriptioner --- CHANGELOG.md | 4 ++++ gradle.properties | 2 +- .../com/bawnorton/configurable/ap/yacl/YaclDescription.java | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1e8c2e..a6967f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 2.2.3 + +- Fix yacl descriptioner generating the incorrect signature when an image isn't present + # 2.2.2 - Support 1.21.3 diff --git a/gradle.properties b/gradle.properties index c3bbc3d..f28e95b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx4G fabric_versions=1.20.1, 1.21.1, 1.21.3 neoforge_versions=1.21.1, 1.21.3 -mod_version=2.2.2 +mod_version=2.2.3 mod_group=com.bawnorton mod_id=configurable mod_name=Configurable diff --git a/src/main/java/com/bawnorton/configurable/ap/yacl/YaclDescription.java b/src/main/java/com/bawnorton/configurable/ap/yacl/YaclDescription.java index 645244a..45a073c 100644 --- a/src/main/java/com/bawnorton/configurable/ap/yacl/YaclDescription.java +++ b/src/main/java/com/bawnorton/configurable/ap/yacl/YaclDescription.java @@ -24,9 +24,6 @@ protected void addNeededImports(Consumer adder) { @Override protected String getSpec(int depth) { - if (image == null && text instanceof YaclDescriptionText) { - return "OptionDescription.of(%s)".formatted(text.getSpec(depth + 1)); - } StringBuilder spec = new StringBuilder(); spec.append(getBuilderSpec()); spec.append("\n%1$s.text(%2$s)".formatted(