Skip to content

Commit

Permalink
🐛 Fix text fallback is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 14, 2024
1 parent 3fed6bd commit 35b0d73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/assets/lang.mcdoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dispatch minecraft:resource[lang] to struct Lang {
[#[translation_key(definition=true)] string]: string,
[#[translation_key(definition=true)] string]: #[translation_value] string,
}

dispatch minecraft:resource["lang/deprecated"] to struct LangDeprecated {
Expand Down
4 changes: 2 additions & 2 deletions java/server/util/text.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ type TextObject = (
} |
struct TranslatedText {
translate: #[translation_key] string,
with?: [Text],
#[since="1.19.4"]
fallback?: Text,
fallback?: #[translation_value] string,
with?: [Text],
#[since="1.20.3"]
type?: "translatable",
...TextBase,
Expand Down

0 comments on commit 35b0d73

Please sign in to comment.