aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity/tutorial.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-09-27 22:06:26 +0200
committermetamuffin <metamuffin@disroot.org>2025-09-27 22:07:19 +0200
commit56607ba41b504b9c012688c945704d376d0b5413 (patch)
treef316f66a5144fc39c444ba0c06d679b53e69aeb1 /server/src/entity/tutorial.rs
parent26db063a218f48456c6aa3238de957fc5cc96831 (diff)
downloadhurrycurry-56607ba41b504b9c012688c945704d376d0b5413.tar
hurrycurry-56607ba41b504b9c012688c945704d376d0b5413.tar.bz2
hurrycurry-56607ba41b504b9c012688c945704d376d0b5413.tar.zst
Move tutorial waiting message to top of screen
Diffstat (limited to 'server/src/entity/tutorial.rs')
-rw-r--r--server/src/entity/tutorial.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/entity/tutorial.rs b/server/src/entity/tutorial.rs
index 43df28f5..f4db3571 100644
--- a/server/src/entity/tutorial.rs
+++ b/server/src/entity/tutorial.rs
@@ -320,10 +320,10 @@ impl StepContext<'_> {
input,
..
} => {
- for (pos, tile) in self.ent.game.tiles.iter().filter(|(_, t)| t.kind == *tile) {
+ for (_pos, tile) in self.ent.game.tiles.iter().filter(|(_, t)| t.kind == *tile) {
if let Some(item) = &tile.item {
if item.kind == *input {
- return Err((Some(*pos), trm!("s.tutorial.wait_finish")));
+ return Err((None, trm!("s.tutorial.wait_finish")));
}
}
}
@@ -335,8 +335,8 @@ impl StepContext<'_> {
Recipe::Passive {
tile: None, input, ..
} => {
- let pos = self.aquire_placed_item(*input)?;
- return Err((Some(pos), trm!("s.tutorial.wait_finish")));
+ self.aquire_placed_item(*input)?;
+ return Err((None, trm!("s.tutorial.wait_finish")));
}
_ => warn!("recipe too hard {r:?}"),
}