mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
no more need to specially add internal mod
This commit is contained in:
parent
4261e99049
commit
93bf3e7121
1 changed files with 0 additions and 9 deletions
|
@ -157,15 +157,6 @@ CCArray* ModListLayer::createModCells(ModListType type, ModListQuery const& quer
|
|||
}
|
||||
}
|
||||
|
||||
// internal geode representation always at the top by default unless
|
||||
// something matches query better
|
||||
// the sorted list is in reverse so adding it last = adding it at the
|
||||
// top
|
||||
auto imod = Mod::get();
|
||||
if (auto match = queryMatch(query, imod)) {
|
||||
sorted.insert({ match.value(), imod });
|
||||
}
|
||||
|
||||
// add the mods sorted
|
||||
for (auto& [score, mod] : ranges::reverse(sorted)) {
|
||||
mods->addObject(ModCell::create(
|
||||
|
|
Loading…
Reference in a new issue