Beatsaber Rust Utilities: A Beatsaber V3 parsing library.
beatsaber beatmap
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix step duration not getting effected by limit.

+3 -3
+3 -3
src/difficulty/lightshow/group.rs
··· 98 98 99 99 #[allow(deprecated)] 100 100 fn get_duration(&self, group_size: i32) -> f32 { 101 - let filtered_size = self.filter.count_filtered_without_limit(group_size); 101 + let filtered_size = self.filter.count_filtered(group_size); 102 102 103 103 if filtered_size == 0 { 104 104 return 0.0; ··· 210 210 ..Default::default() 211 211 }; 212 212 213 - assert_eq!(group.get_duration(12), 12.0); 213 + assert_eq!(group.get_duration(12), 6.0); 214 214 } 215 215 216 216 #[test] ··· 242 242 ..Default::default() 243 243 }; 244 244 245 - assert_eq!(group.get_duration(12), 12.0); 245 + assert_eq!(group.get_duration(12), 6.0); 246 246 } 247 247 248 248 #[test]