1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-26 18:21:04 +00:00

start working on flags

This commit is contained in:
Xeno333 2025-06-14 22:50:31 -05:00
parent 33908990cc
commit 75a7c3b4de
7 changed files with 44 additions and 10 deletions

View file

@ -146,6 +146,15 @@ bool parseModContents(ModSpec &spec)
}
}
}
} else {
if (info.exists("mapgen_flags")) {
std::string dep = info.get("mapgen_flags");
dep.erase(std::remove_if(dep.begin(), dep.end(),
static_cast<int (*)(int)>(&std::isspace)), dep.end());
for (const auto &flag : str_split(dep, ',')) {
spec.mapgen_flags.insert(flag);
}
}
}
if (info.exists("description"))