aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-28 22:27:42 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-28 22:27:42 +0100
commit50ebcafc17f8f0a29f59dfb86cc7a27180c8e9b8 (patch)
tree80921b2f6939683dd34a88b243a9d8ea15ab0dbf
parentcd155c97cf7a4273067e31727d7c7aac58cd7b12 (diff)
downloadhurrycurry-50ebcafc17f8f0a29f59dfb86cc7a27180c8e9b8.tar
hurrycurry-50ebcafc17f8f0a29f59dfb86cc7a27180c8e9b8.tar.bz2
hurrycurry-50ebcafc17f8f0a29f59dfb86cc7a27180c8e9b8.tar.zst
fix active recipes stopping in hand
-rw-r--r--server/game-core/src/interaction.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/game-core/src/interaction.rs b/server/game-core/src/interaction.rs
index 28efc43e..88eff676 100644
--- a/server/game-core/src/interaction.rs
+++ b/server/game-core/src/interaction.rs
@@ -311,7 +311,7 @@ impl Game {
let r = &self.data.recipe(a.recipe);
let prev_speed = a.speed;
- if parts.iter().any(|p| r.supports_tile(*p)) {
+ if r.tile().is_none() || parts.iter().any(|p| r.supports_tile(*p)) {
if a.speed <= 0.
&& let Recipe::Passive { speed, .. } = &self.data.recipe(a.recipe)
{