From 4e8f075ff3c62292e2aff2aa5ddf59aaa18cdf05 Mon Sep 17 00:00:00 2001 From: flow Date: Sun, 27 Feb 2022 22:02:43 -0300 Subject: [PATCH] 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. --- launcher/modplatform/flame/FlameModIndex.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/launcher/modplatform/flame/FlameModIndex.cpp b/launcher/modplatform/flame/FlameModIndex.cpp index 082ffa57b..4adaf5f16 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)