Room Creating: Place Kitchen Furniture #11

Merged
msrd0 merged 19 commits from room-creation-placing-furniture into main 2024-07-07 11:54:43 +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}",