Skip to content

Commit

Permalink
Loader::get()->getLoadedMod("maxnu.gd_mega_overlay")->getSavedValue<b…
Browse files Browse the repository at this point in the history
…ool>("level/endlevellayerinfo/enabled")
  • Loading branch information
RayDeeUx committed Mar 14, 2024
1 parent 17387f0 commit fdd95cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
mainLayer->addChild(jumpsLabel);
mainLayer->updateLayout();
}
if (m_fields->isGDMO && theLevel->m_coins == 0) {
if (m_fields->isGDMO && theLevel->m_coins == 0 && Loader::get()->getLoadedMod("maxnu.gd_mega_overlay")->getSavedValue<bool>("level/endlevellayerinfo/enabled")) {
auto mainLayer = getChildByID("main-layer");
if (mainLayer == nullptr) return;
// gdmo does this silly thing where they add children without giving them node IDs and i need to release this mod ASAP so please forgive me for using getobjectatindex but getchildoftype doesnt work for this use case because everything in endscreen layer is a child of some other cclayer smh
Expand Down

0 comments on commit fdd95cc

Please sign in to comment.