mirror of
https://github.com/Murasame-Dev/McStatus-Img.git
synced 2025-12-16 05:07:57 +00:00
Fix bugs
This commit is contained in:
parent
0effcb90d5
commit
13255dcb55
3 changed files with 8 additions and 6 deletions
|
|
@ -65,5 +65,5 @@ def foramt_motd(data: str, weight: int) -> list[tuple[int, str, str]]:
|
|||
while iter < data_size and data[iter] != "§" and data[iter] != "\n":
|
||||
text += data[iter]
|
||||
iter += 1
|
||||
motd_list.append((len(text), "white", text))
|
||||
motd_list.append(((iter - character_count * 2) / data_size * weight, "white", text))
|
||||
return motd_list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue