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.

Fixed limit values of zero not being ignored.

+5 -4
+5 -4
src/difficulty/lightshow/filter.rs
··· 82 82 pub fn is_in_filter(&self, mut light_id: i32, mut group_size: i32) -> bool { 83 83 assert!(light_id < group_size); 84 84 85 - if let Some(limit) = self.limit_percent { 86 - if light_id >= (group_size as f32 * limit) as i32 { 87 - return false; 88 - } 85 + if let Some(limit) = self.limit_percent 86 + && limit > 0.0 87 + && light_id >= (group_size as f32 * limit) as i32 88 + { 89 + return false; 89 90 } 90 91 91 92 if self.reverse.is_true() {