Skip to content

Commit

Permalink
fix descriptioner
Browse files Browse the repository at this point in the history
  • Loading branch information
Bawnorton committed Nov 18, 2024
1 parent 04dc2ff commit 38fb641
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ protected void addNeededImports(Consumer<String> 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(
Expand Down

0 comments on commit 38fb641

Please sign in to comment.