Fix bugs when updating curseforge modpacks
Signed-off-by: clickdevin <git@clickdevin.me>
(cherry picked from commit d4f2059b78
)
This commit is contained in:
parent
fd0ba70080
commit
949da6b50e
@ -153,6 +153,9 @@ bool FlameCreationTask::updateInstance()
|
|||||||
|
|
||||||
old_files.remove(file.key());
|
old_files.remove(file.key());
|
||||||
files_iterator = files.erase(files_iterator);
|
files_iterator = files.erase(files_iterator);
|
||||||
|
|
||||||
|
if (files_iterator != files.begin())
|
||||||
|
files_iterator--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user