Skip to content

Commit

Permalink
fix testmode in main levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter authored and Cvolton committed Jul 12, 2024
1 parent 183a56d commit cb5fc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlayLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using namespace geode::node_ids;
//setIDSafe<UILayer>(this, 0, "ui-layer"); //changing this id is unsafe because mods depend on "UILayer", which is actually fairly safe to do, since this is the only UILayer in the whole layer
int index = 0;
#if GEODE_COMP_GD_VERSION >= 22060
if (this->m_isTestMode) {
if (this->m_level->m_levelType == GJLevelType::Editor) {
// Testmode is only added for local levels
setIDSafe<CCLabelBMFont>(this, 0, "testmode-label");
index++;
Expand Down

0 comments on commit cb5fc46

Please sign in to comment.