mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 22:52:32 +00:00
Merge branch 'main' into 1.20
This commit is contained in:
commit
d51f47b850
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue