mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Closes #573. Do not announce alias change for non-body players.
This commit is contained in:
parent
f076a60260
commit
6865894f96
@ -358,12 +358,16 @@ fn handle_alias(
|
||||
player.alias.clone(),
|
||||
));
|
||||
server.state.notify_registered_clients(msg);
|
||||
server
|
||||
.state
|
||||
.notify_registered_clients(ServerMsg::broadcast(format!(
|
||||
"{} is now known as {}.",
|
||||
old_alias, player.alias
|
||||
)));
|
||||
|
||||
// Announce alias change if target has a Body.
|
||||
if ecs.read_storage::<comp::Body>().get(target).is_some() {
|
||||
server
|
||||
.state
|
||||
.notify_registered_clients(ServerMsg::broadcast(format!(
|
||||
"{} is now known as {}.",
|
||||
old_alias, player.alias
|
||||
)));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
server.notify_client(
|
||||
|
Loading…
Reference in New Issue
Block a user