mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
fix not recognizing empty mod lists on new mod list
This commit is contained in:
parent
76cfc47a2f
commit
3297b3e62e
@ -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"],
|
||||
|
@ -85,7 +85,7 @@ std::string GetVer() {
|
||||
return "2.2";
|
||||
}
|
||||
std::string GetPatch() {
|
||||
return ".0";
|
||||
return ".1";
|
||||
}
|
||||
|
||||
std::string GetEP(const char* P) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user