aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-02-27 22:02:43 -0300
committerflow <thiagodonato300@gmail.com>2022-02-27 22:02:43 -0300
commit4e8f075ff3c62292e2aff2aa5ddf59aaa18cdf05 (patch)
treec70bf95cb06dac89b2b6866770fe426811513893
parent075d900d45f25475c7fe600d6237f17d5c257d30 (diff)
downloadPrismLauncher-4e8f075ff3c62292e2aff2aa5ddf59aaa18cdf05.tar.gz
PrismLauncher-4e8f075ff3c62292e2aff2aa5ddf59aaa18cdf05.tar.bz2
PrismLauncher-4e8f075ff3c62292e2aff2aa5ddf59aaa18cdf05.zip
fix: Do not loop when its not a fabric mod on Flame version validation
Since there's no validation for forge mods since the start, we were just looping with no porpuse in this situation.
-rw-r--r--launcher/modplatform/flame/FlameModIndex.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/launcher/modplatform/flame/FlameModIndex.cpp b/launcher/modplatform/flame/FlameModIndex.cpp
index 082ffa57..4adaf5f1 100644
--- a/launcher/modplatform/flame/FlameModIndex.cpp
+++ b/launcher/modplatform/flame/FlameModIndex.cpp
@@ -81,9 +81,8 @@ void FlameMod::loadIndexedPackVersions(FlameMod::IndexedPack & pack, QJsonArray
break;
}
}
- else if(fname == "mcmod.info"){ //this cannot check for the recent mcmod.toml formats
- break;
- }
+ else break;
+ // NOTE: Since we're not validating forge versions, we can just skip this loop.
}
if(hasFabric && !is_valid_fabric_version)