mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
give geode a boost in local sorting
This commit is contained in:
parent
16fdddb06e
commit
d8864975a3
1 changed files with 4 additions and 0 deletions
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue