give geode a boost in local sorting

This commit is contained in:
HJfod 2024-02-29 16:45:07 +02:00
parent 16fdddb06e
commit d8864975a3

View file

@ -42,6 +42,10 @@ static std::pair<std::vector<Mod*>, size_t> getModsWithQuery(server::ModsQuery c
addToList = false;
}
}
// Loader gets boost to ensure it's normally always top of the list
if (mod->getID() == "geode.loader") {
weighted += 5;
}
if (addToList) {
mods.push_back({ mod, weighted });
}