Merge branch 'main' into 1.20

This commit is contained in:
mat 2023-04-30 00:07:18 -05:00
commit d51f47b850

View file

@ -55,7 +55,7 @@ impl TranslatableComponent {
let mut built_text = String::new(); let mut built_text = String::new();
let mut components = Vec::new(); let mut components = Vec::new();
while i < template.len() { while i < template.chars().count() {
if template.chars().nth(i).unwrap() == '%' { if template.chars().nth(i).unwrap() == '%' {
let Some(char_after) = template.chars().nth(i + 1) else { let Some(char_after) = template.chars().nth(i + 1) else {
built_text.push(template.chars().nth(i).unwrap()); built_text.push(template.chars().nth(i).unwrap());