chore: add pumpkin_macros::translate_cross! macro
validates translations at compile time, also update bedrock translations to latest 26.40.5
This commit is contained in:
1 parent
366c9cb323
commit
1ee7be3f8c
46 files changed
+42552
-1144
No files matched your search
@@ -28,10 +28,12 @@ pub struct AdvancementDisplay {
|
||||
}
|
||||
|
||||
impl AdvancementDisplay {
|
||||
#[allow(deprecated)]
|
||||
pub fn get_title(&self) -> TextComponent {
|
||||
TextComponent::translate(self.title, [])
|
||||
}
|
||||
|
||||
#[allow(deprecated)]
|
||||
pub fn get_description(&self) -> TextComponent {
|
||||
TextComponent::translate(self.description, [])
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user