Rebase fixes

This commit is contained in:
tommy 2019-07-21 13:03:06 -04:00
parent 8bac6e1e72
commit ea0bbe7e47
2 changed files with 11 additions and 10 deletions

View File

@ -1,5 +1,10 @@
use super::{ClientState, EcsCompPacket, EcsResPacket};
use crate::{comp, terrain::TerrainChunk, ChatType};
use crate::{
comp,
terrain::{Block, TerrainChunk},
ChatType,
};
use fxhash::FxHashMap;
use vek::*;
#[derive(Debug, Clone, Serialize, Deserialize)]

View File

@ -627,7 +627,7 @@ fn handle_tell(server: &mut Server, entity: EcsEntity, args: String, action: &Ch
);
server.clients.notify(
entity,
ServerMsg::tell(format!("You tell {} {}", alias, msg)),
ServerMsg::tell(format!("You tell {}:{}", alias, msg)),
);
}
None => {
@ -640,20 +640,16 @@ fn handle_tell(server: &mut Server, entity: EcsEntity, args: String, action: &Ch
} else {
server.clients.notify(
entity,
ServerMsg::Chat(format!(
ServerMsg::chat(format!(
"You really should say something to {}!",
alias
)),
);
}
} else {
server.clients.notify(
entity,
ServerMsg::chat(format!(
"You really should say something to {}!",
alias
)),
);
server
.clients
.notify(entity, ServerMsg::chat(format!("Don't be crazy!")));
}
}
None => {