This commit is contained in:
Marcel Märtens 2021-03-16 23:31:40 +01:00
parent 3fd9d54baf
commit b534282dcc
3 changed files with 5 additions and 7 deletions

View File

@ -207,7 +207,6 @@ impl BotClient {
info!("login done");
}
pub fn handle_ingame_join(&mut self, prefix: &str) {
let creds: Vec<_> = self
.settings
@ -220,13 +219,11 @@ impl BotClient {
let runtime = Arc::clone(&self.runtime);
let server = self.settings.server.clone();
let client = match self
.bot_clients
.get_mut(&cred.username) {
let client = match self.bot_clients.get_mut(&cred.username) {
Some(c) => c,
None => {
tracing::trace!(?cred.username, "skip not logged in client");
continue
continue;
},
};

View File

@ -28,7 +28,7 @@ pub enum Cmd {
},
InGame {
prefix: String,
}
},
}
pub struct Tui {

View File

@ -2,6 +2,8 @@
use crate::plugin::memory_manager::EcsWorld;
#[cfg(feature = "plugins")]
use crate::plugin::PluginMgr;
#[cfg(feature = "plugins")]
use common::uid::UidAllocator;
use common::{
comp,
event::{EventBus, LocalEvent, ServerEvent},
@ -11,7 +13,6 @@ use common::{
terrain::{Block, TerrainChunk, TerrainGrid},
time::DayPeriod,
trade::Trades,
uid::UidAllocator,
vol::{ReadVol, WriteVol},
};
use common_base::span;