diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-19 12:35:44 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-19 12:37:20 +0200 |
commit | 36045a8b0aa5c99e8520a39e6cc372ab9b549668 (patch) | |
tree | 7ed9d2328b38bb458fb4890c3220703f084cb23e /launcher/modplatform | |
parent | 943090db98dbbe969afed8a4fb59f4bbb43449cc (diff) | |
download | PrismLauncher-36045a8b0aa5c99e8520a39e6cc372ab9b549668.tar.gz PrismLauncher-36045a8b0aa5c99e8520a39e6cc372ab9b549668.tar.bz2 PrismLauncher-36045a8b0aa5c99e8520a39e6cc372ab9b549668.zip |
chore: improve readability
Co-authored-by: flow <thiagodonato300@gmail.com>
Diffstat (limited to 'launcher/modplatform')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthAPI.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthAPI.h b/launcher/modplatform/modrinth/ModrinthAPI.h index 39f6c49a..79bc5175 100644 --- a/launcher/modplatform/modrinth/ModrinthAPI.h +++ b/launcher/modplatform/modrinth/ModrinthAPI.h @@ -33,12 +33,12 @@ class ModrinthAPI : public NetworkModAPI { QStringList l; for (auto loader : {Forge, Fabric, Quilt}) { - if (types & loader || types == Unspecified) + if ((types & loader) || types == Unspecified) { l << ModAPI::getModLoaderString(loader); } } - if (types & Quilt && ~types & Fabric) // Add Fabric if Quilt is in use, if Fabric isn't already there + if ((types & Quilt) && (~types & Fabric)) // Add Fabric if Quilt is in use, if Fabric isn't already there l << ModAPI::getModLoaderString(Fabric); return l; } @@ -98,7 +98,7 @@ class ModrinthAPI : public NetworkModAPI { inline auto validateModLoaders(ModLoaderTypes loaders) const -> bool { - return loaders == Unspecified || loaders & (Forge | Fabric | Quilt); + return (loaders == Unspecified) || (loaders & (Forge | Fabric | Quilt)); } }; |