mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
rustfmt issues
This commit is contained in:
parent
52b65d5938
commit
6d8eea5085
@ -433,9 +433,8 @@ fn handle_killnpcs(server: &mut Server, entity: EcsEntity, _args: String, _actio
|
|||||||
.map(|s| s.health.set_to(0, comp::HealthSource::Command));
|
.map(|s| s.health.set_to(0, comp::HealthSource::Command));
|
||||||
}
|
}
|
||||||
let text = if npclist.len() > 0 {
|
let text = if npclist.len() > 0 {
|
||||||
format!("Destroyed {} NPCs.",npclist.len())
|
format!("Destroyed {} NPCs.", npclist.len())
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
"No NPCs on server.".to_string()
|
"No NPCs on server.".to_string()
|
||||||
};
|
};
|
||||||
server.clients.notify(entity, ServerMsg::Chat(text));
|
server.clients.notify(entity, ServerMsg::Chat(text));
|
||||||
|
Loading…
Reference in New Issue
Block a user