fix not recognizing empty mod lists on new mod list

This commit is contained in:
Lion Kortlepel 2024-10-09 17:35:50 +02:00
parent 76cfc47a2f
commit 3297b3e62e
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
2 changed files with 4 additions and 1 deletions

View File

@ -366,6 +366,9 @@ struct ModInfo {
std::vector<ModInfo> modInfos;
try {
auto json = nlohmann::json::parse(packet);
if (json.empty()) {
return modInfos;
}
for (const auto& entry : json) {
ModInfo modInfo {
.FileName = entry["file_name"],

View File

@ -85,7 +85,7 @@ std::string GetVer() {
return "2.2";
}
std::string GetPatch() {
return ".0";
return ".1";
}
std::string GetEP(const char* P) {