From fbd078d34a71fdf345599f90c1cb32625d49041a Mon Sep 17 00:00:00 2001 From: Cvolton Date: Tue, 29 Oct 2024 00:26:19 +0100 Subject: [PATCH] fix test mode label offset by setting disabled --- src/PlayLayer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/PlayLayer.cpp b/src/PlayLayer.cpp index 81d8381..3ef71f2 100644 --- a/src/PlayLayer.cpp +++ b/src/PlayLayer.cpp @@ -19,10 +19,9 @@ using namespace geode::node_ids; //setIDSafe(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_level->m_levelType == GJLevelType::Editor) { + if (this->m_level->m_levelType == GJLevelType::Editor && !GameManager::sharedState()->getGameVariable("0174")) { // Testmode is only added for local levels - setIDSafe(this, 0, "testmode-label"); - index++; + setIDSafe(this, index++, "testmode-label"); } #endif