Add JSON-RPC interface and refactor for MCP support
All checks were successful
Smoke tests / Build and smoke test (push) Successful in 1h0m43s
All checks were successful
Smoke tests / Build and smoke test (push) Successful in 1h0m43s
This commit is contained in:
14
src/tick.rs
14
src/tick.rs
@@ -291,11 +291,15 @@ pub async fn run_tick_engine(state: SharedState) {
|
||||
return None;
|
||||
}
|
||||
let conn = st.players.get(&pid)?;
|
||||
Some((
|
||||
conn.channel,
|
||||
conn.handle.clone(),
|
||||
format!("{}{}", msg, ansi::prompt()),
|
||||
))
|
||||
if let (Some(ch), Some(h)) = (conn.channel, &conn.handle) {
|
||||
Some((
|
||||
ch,
|
||||
h.clone(),
|
||||
format!("{}{}", msg, ansi::prompt()),
|
||||
))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user