diff --git a/client/src/lib.rs b/client/src/lib.rs index abdbb3d48d..3e19e5a3f3 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -3248,8 +3248,8 @@ impl Client { self.missing_plugins.len() } - /// number of requested plugins - pub fn num_missing_plugins(&self) -> usize { self.missing_plugins.len() } + /// true if missing_plugins is not empty + pub fn are_plugins_missing(&self) -> bool { !self.missing_plugins.is_empty() } /// extract list of locally cached plugins to load pub fn take_local_plugins(&mut self) -> Vec { std::mem::take(&mut self.local_plugins) } diff --git a/voxygen/src/menu/char_selection/mod.rs b/voxygen/src/menu/char_selection/mod.rs index d2b8d52de1..bca1f708a7 100644 --- a/voxygen/src/menu/char_selection/mod.rs +++ b/voxygen/src/menu/char_selection/mod.rs @@ -71,7 +71,7 @@ impl CharSelectionState { impl PlayState for CharSelectionState { fn enter(&mut self, global_state: &mut GlobalState, _: Direction) { // Load the player's character list - if self.client.borrow().num_missing_plugins() == 0 { + if !self.client.borrow().are_plugins_missing() { self.client.borrow_mut().load_character_list(); }