Detect resources incompatible with the MC version

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2026-02-12 16:43:11 +00:00
parent 157ae6fb72
commit e2d503456f
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
5 changed files with 48 additions and 4 deletions

View file

@ -258,9 +258,11 @@ void ModFolderModel::onParseSucceeded(int ticket, QString mod_id)
auto resource = find(mod_id);
auto result = cast_task->result();
if (result && resource)
static_cast<Mod*>(resource.get())->finishResolvingWithDetails(std::move(result->details));
if (result && resource) {
auto* mod = static_cast<Mod*>(resource.get());
mod->finishResolvingWithDetails(std::move(result->details));
}
emit dataChanged(index(row, RequiresColumn), index(row, RequiredByColumn));
}