cargo fmt; changelog

This commit is contained in:
CapsizeGlimmer 2020-06-06 03:32:09 -04:00 committed by Forest Anderson
parent 2a0f0053d4
commit 4117f2f2a8
4 changed files with 14 additions and 4 deletions

View File

@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Eyebrows and shapes can now be selected - Eyebrows and shapes can now be selected
- Character name and level information to chat, social tab and `/players` command - Character name and level information to chat, social tab and `/players` command
- Added inventory, armour and weapon saving - Added inventory, armour and weapon saving
- Show where screenshots are saved to in the chat - Show where screenshots are saved in the chat
- Added basic auto walk - Added basic auto walk
- Added weapon/attack sound effects - Added weapon/attack sound effects
- M2 attack for bow - M2 attack for bow
@ -26,6 +26,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Server whitelist - Server whitelist
- Optional server-side maximum view distance - Optional server-side maximum view distance
- MOTD on login - MOTD on login
- Added group chat `/join_group` `/group`
- Added faction chat `/join_faction` `/faction`
- Added regional, local, and global chat (`/region`, `/say`, and `/world`, respectively)
- Added command shortcuts for each of the above chat modes (`/g`, `/f`, `/r`, `/s`, and `/w`, respectively and `/t` for `/tell`)
### Changed ### Changed

View File

@ -764,7 +764,8 @@ impl Client {
player_info.is_admin = admin; player_info.is_admin = admin;
} else { } else {
warn!( warn!(
"Received msg to update admin status of uid {}, but they were not in the list.", "Received msg to update admin status of uid {}, but they were not \
in the list.",
uid uid
); );
} }

View File

@ -959,7 +959,11 @@ fn handle_adminify(
.map(|(entity, _)| entity); .map(|(entity, _)| entity);
match opt_player { match opt_player {
Some(player) => { Some(player) => {
let is_admin = if server.state.read_component_cloned::<comp::Admin>(player).is_some() { let is_admin = if server
.state
.read_component_cloned::<comp::Admin>(player)
.is_some()
{
ecs.write_storage::<comp::Admin>().remove(player); ecs.write_storage::<comp::Admin>().remove(player);
false false
} else { } else {

View File

@ -40,7 +40,8 @@ pub fn add_server_systems(dispatch_builder: &mut DispatcherBuilder) {
dispatch_builder.add(terrain::Sys, TERRAIN_SYS, &[]); dispatch_builder.add(terrain::Sys, TERRAIN_SYS, &[]);
dispatch_builder.add(waypoint::Sys, WAYPOINT_SYS, &[]); dispatch_builder.add(waypoint::Sys, WAYPOINT_SYS, &[]);
dispatch_builder.add(persistence::Sys, PERSISTENCE_SYS, &[]); dispatch_builder.add(persistence::Sys, PERSISTENCE_SYS, &[]);
//dispatch_builder.add(persistence::stats::Sys, STATS_PERSISTENCE_SYS, &[]); //dispatch_builder.add(persistence::stats::Sys, STATS_PERSISTENCE_SYS,
// &[]);
} }
pub fn run_sync_systems(ecs: &mut specs::World) { pub fn run_sync_systems(ecs: &mut specs::World) {