Log unsuccessful item give in console

This commit is contained in:
crumblingstatue 2023-04-16 01:45:20 +02:00
parent 5f7924b696
commit f8ff92a84d

View file

@ -1,3 +1,5 @@
use std::fmt::Write;
use anyhow::Context;
use directories::ProjectDirs;
use egui_sfml::SfEgui;
@ -410,9 +412,15 @@ impl App {
self.game.inventory.slots.push(Slot {
id: i as ItemId,
qty: 1,
})
});
return;
}
}
writeln!(
&mut self.debug.console.log,
"Item with name '{name}' not found"
)
.unwrap();
}
}
}