Skip to content

Commit

Permalink
cache daily level info instantly
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Dec 6, 2023
1 parent e878e6b commit b4ce519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/LevelCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ class $modify(BILevelCell, LevelCell) {
idTextNode->setColor({51,51,51});
idTextNode->setOpacity(152);
menu->addChild(idTextNode);
//TODO: CvoltonManager
if(this->m_level->m_dailyID > 0 || Mod::get()->getSettingValue<bool>("white-id")){
idTextNode->setColor({255,255,255});
idTextNode->setOpacity(200);
Expand All @@ -163,6 +162,7 @@ class $modify(BILevelCell, LevelCell) {
dailyTextNode->setOpacity(200);
menu->addChild(dailyTextNode);

BetterInfoCache::sharedState()->cacheLevel(m_level);
}

menuDone = true;
Expand Down

0 comments on commit b4ce519

Please sign in to comment.