mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 19:55:02 +01:00
Log unsuccessful item give in console
This commit is contained in:
parent
5f7924b696
commit
f8ff92a84d
1 changed files with 9 additions and 1 deletions
10
src/app.rs
10
src/app.rs
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue