From 347df2cdea383118a09b0ccdc66ddcbde3f5ff70 Mon Sep 17 00:00:00 2001 From: MAJigsaw77 Date: Thu, 23 Jul 2026 13:06:29 +0300 Subject: [PATCH] Make the debug display be added to the game itself, not the parent --- source/funkin/Preferences.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/Preferences.hx b/source/funkin/Preferences.hx index 901bc8352..f97a8a51a 100644 --- a/source/funkin/Preferences.hx +++ b/source/funkin/Preferences.hx @@ -569,13 +569,13 @@ class Preferences public static function setDebugDisplayMode(mode:DebugDisplayMode):Void { - if (FlxG.game.parent.contains(Main.debugDisplay)) FlxG.game.parent.removeChild(Main.debugDisplay); + if (FlxG.game.contains(Main.debugDisplay)) FlxG.game.removeChild(Main.debugDisplay); if (mode == DebugDisplayMode.Off) return; Main.debugDisplay.isAdvanced = (mode == DebugDisplayMode.Advanced); - FlxG.game.parent.addChild(Main.debugDisplay); + FlxG.game.addChild(Main.debugDisplay); } static function setDebugDisplayBGOpacity(value:Float):Void