diff --git a/assets/voxygen/i18n/en/hud/map.ron b/assets/voxygen/i18n/en/hud/map.ron index 61f3e1ccc1..5c30f4f22c 100644 --- a/assets/voxygen/i18n/en/hud/map.ron +++ b/assets/voxygen/i18n/en/hud/map.ron @@ -13,8 +13,8 @@ "hud.map.dungeons": "Dungeons", "hud.map.caves": "Caves", "hud.map.cave": "Cave", - "hud.map.peaks": "Mountains", - "hud.map.voxel_map": "Voxel map", + "hud.map.peaks": "Mountains", + "hud.map.voxel_map": "Voxel map", "hud.map.trees": "Giant Trees", "hud.map.tree": "Giant Tree", "hud.map.town": "Town", diff --git a/voxygen/src/hud/minimap.rs b/voxygen/src/hud/minimap.rs index 6932b324fc..42a1dac13b 100644 --- a/voxygen/src/hud/minimap.rs +++ b/voxygen/src/hud/minimap.rs @@ -210,15 +210,8 @@ impl VoxelMinimap { } fn remove_unloaded_chunks(&mut self, terrain: &TerrainGrid) { - let mut removals = Vec::new(); - for key in self.chunk_minimaps.keys() { - if terrain.get_key(*key).is_none() { - removals.push(*key); - } - } - for key in removals.into_iter() { - self.chunk_minimaps.remove(&key); - } + self.chunk_minimaps + .retain(|key, _| terrain.get_key(*key).is_some()); } pub fn maintain(&mut self, client: &Client, ui: &mut Ui) {