Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Feb 2, 2024
1 parent 7f50566 commit c981d48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sources/hangar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ impl<'a> HangarAPI<'a> {
pub fn get_versions_filter(&self) -> mcapi::hangar::VersionsFilter {
let platform = self.get_platform();
mcapi::hangar::VersionsFilter {
platform_version: platform.map(|_| self.0.mc_version().to_owned()),
platform_version: if platform.is_some() {
Some(self.0.mc_version().to_owned())
} else {
None
},
platform,
..Default::default()
}
Expand Down

0 comments on commit c981d48

Please sign in to comment.