aboutsummaryrefslogtreecommitdiff
path: root/light-client/src/game.rs
diff options
context:
space:
mode:
Diffstat (limited to 'light-client/src/game.rs')
-rw-r--r--light-client/src/game.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/light-client/src/game.rs b/light-client/src/game.rs
index ac5c3571..2692e6fc 100644
--- a/light-client/src/game.rs
+++ b/light-client/src/game.rs
@@ -86,10 +86,13 @@ impl Game {
Sprite::new(
renderer
.metadata()
- .get(&format!("{name}:a"))
+ .get(&format!("{name}+a"))
.copied()
- .unwrap_or(Rect::new(0, 0, 32, 24)),
- Vec2::ZERO,
+ .unwrap_or_else(|| {
+ warn!("no sprite for item {name:?}");
+ Rect::new(0, 0, 32, 24)
+ }),
+ Vec2::new(0., 0.0),
0.1,
)
})