fix texture loading

This commit is contained in:
Dominic 2024-07-07 11:40:02 +02:00
parent 8f67dad44c
commit c5ac0b39b2
Signed by: msrd0
GPG key ID: AAF7C8430CA3345D

View file

@ -37,7 +37,7 @@ impl FurnitureAsset {
) -> Option<TextureHandle> {
let mut loaded = ASSETS_LOADED.lock();
if loaded.contains(&path) {
return None;
return Some(texture_id(&path));
}
let bytes = match fs::read(format!(
"{}/assets/furniture/{path}",