From 3951a63d9393ed7e1381bbb9da95dfb2dd2d6b13 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 14 Oct 2024 00:24:15 +0200 Subject: book intermediate representation and packets for sending to client --- server/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/commands.rs') diff --git a/server/src/commands.rs b/server/src/commands.rs index feb6ab65..25b51bff 100644 --- a/server/src/commands.rs +++ b/server/src/commands.rs @@ -195,7 +195,7 @@ impl Server { .await .map_err(|e| TrError::Plain(e.to_string()))?; } - Command::Book => replies.push(PacketC::Menu(Menu::Book)), + Command::Book => replies.push(PacketC::Menu(Menu::Document(self.data.book.clone()))), Command::Download { r#type, name } => { let source = match r#type { DownloadType::Map => self.index.read_map(&name).await, -- cgit v1.2.3-70-g09d2