fix texture loading
This commit is contained in:
parent
8f67dad44c
commit
c5ac0b39b2
1 changed files with 1 additions and 1 deletions
|
@ -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}",
|
||||
|
|
Loading…
Reference in a new issue