aboutsummaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-27 00:02:22 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-27 00:02:30 +0200
commit938551ca5ea0aa9c606443f8f45e9907639b8f6e (patch)
treeb2a7165fa29159c3491673d8cb9211ed8728f1f2 /server/src
parentb4143bf35dce7b7826a44022c7116eb042c9a68e (diff)
downloadhurrycurry-938551ca5ea0aa9c606443f8f45e9907639b8f6e.tar
hurrycurry-938551ca5ea0aa9c606443f8f45e9907639b8f6e.tar.bz2
hurrycurry-938551ca5ea0aa9c606443f8f45e9907639b8f6e.tar.zst
unknown orders
Diffstat (limited to 'server/src')
-rw-r--r--server/src/entity/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/entity/mod.rs b/server/src/entity/mod.rs
index 4cbfb50b..15e9b0d8 100644
--- a/server/src/entity/mod.rs
+++ b/server/src/entity/mod.rs
@@ -185,7 +185,10 @@ pub fn construct_entity(
blocker_tile: reg.register_tile("fence".to_string()),
active: true,
}),
- EntityDecl::Customers {} => Box::new(Customers::new()?),
+ EntityDecl::Customers {} => {
+ reg.register_item("unknown-order".to_owned());
+ Box::new(Customers::new()?)
+ }
EntityDecl::EnvironmentEffect(config) => Box::new(EnvironmentEffectController::new(config)),
EntityDecl::Environment(names) => Box::new(EnvironmentController(names)),
})