room-creation #15

Merged
Glaeder merged 18 commits from room-creation into main 2024-07-07 14:13:52 +00:00
Showing only changes of commit c5ac0b39b2 - Show all commits

View file

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