From 3f1f9aa32af4edb41ce99d404b1695561b770777 Mon Sep 17 00:00:00 2001 From: Marko Grizelj Date: Tue, 12 Nov 2024 19:53:33 +0100 Subject: [PATCH] fix: f size --- src/rand.rs | 2 +- src/rand/maps.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rand.rs b/src/rand.rs index 78caf60..04a710c 100644 --- a/src/rand.rs +++ b/src/rand.rs @@ -1207,7 +1207,7 @@ pub async fn read_objects(path: &PathBuf) -> anyhow::Result { } let doesnt_fit = files.iter().find(|(lang, talk_file)| { - let csize = talk_file.file.file_size(); + let csize = talk_file.file.file_size_text(); let generic_text = &lang.to_received_item_generic(); diff --git a/src/rand/maps.rs b/src/rand/maps.rs index 73bc1e7..a1a6da4 100644 --- a/src/rand/maps.rs +++ b/src/rand/maps.rs @@ -242,7 +242,7 @@ fn item_boxes( [nv as usize] .clone(); - let csize = text_file.file.file_size(); + let csize = text_file.file.file_size_text(); let received_item_text = lang.to_received_item(item_name);