From 09f28d28f572478b35ca009b6ed64189756ec636 Mon Sep 17 00:00:00 2001 From: hheik <4469778+hheik@users.noreply.github.com> Date: Thu, 28 Sep 2023 01:07:31 +0300 Subject: [PATCH] Fixed sprite caching --- src/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.rs b/src/database.rs index 76811fa..34602b6 100644 --- a/src/database.rs +++ b/src/database.rs @@ -60,7 +60,7 @@ pub fn load_url_asset( assets: &Res, ) -> Result, Box> { let system_path = Path::new("assets").join(&path); - if Path::exists(&path) { + if Path::exists(&system_path) { return Ok(assets.load(path)); } let data = reqwest::blocking::get(&url)?.bytes()?;