aboutsummaryrefslogtreecommitdiff
path: root/azalea-chat/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-chat/src')
-rwxr-xr-xazalea-chat/src/translatable_component.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/azalea-chat/src/translatable_component.rs b/azalea-chat/src/translatable_component.rs
index c633b901..eb8abcdc 100755
--- a/azalea-chat/src/translatable_component.rs
+++ b/azalea-chat/src/translatable_component.rs
@@ -58,7 +58,7 @@ impl TranslatableComponent {
while i < template.chars().count() {
if template.chars().nth(i).unwrap() == '%' {
let Some(char_after) = template.chars().nth(i + 1) else {
- built_text.push(template.chars().nth(i).unwrap());
+ built_text.push('%');
break;
};
i += 1;
@@ -161,7 +161,6 @@ impl From<StringOrComponent> for TextComponent {
}
}
-// tests
#[cfg(test)]
mod tests {
use super::*;