removed if

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-08-28 08:50:10 +03:00
parent 479335dfe0
commit 5d70f4dbca
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -394,7 +394,7 @@ bool ModrinthCreationTask::parseManifest(const QString& index_path,
for (auto file : optionalFiles) { for (auto file : optionalFiles) {
if (selectedMods.contains(file.path)) { if (selectedMods.contains(file.path)) {
file.required = true; file.required = true;
} else if (file.path.endsWith(".jar")) { } else {
file.path += ".disabled"; file.path += ".disabled";
} }
files.push_back(file); files.push_back(file);