diff --git a/TM_DebugMode.Script.txt b/TM_DebugMode.Script.txt index aefb5f4..feb8a6c 100644 --- a/TM_DebugMode.Script.txt +++ b/TM_DebugMode.Script.txt @@ -32,6 +32,7 @@ Layers::SetType(C_DebugMode_MainUI, CUILayer::EUILayerType::Normal); if (S_DebugLib_RestrictUIto == "") { Layers::Attach(C_DebugMode_MainUI); } else { + Layers::Detach(C_DebugMode_MainUI); foreach (Login in TL::Split(",", S_DebugLib_RestrictUIto)) { declare CSmPlayer Player = GetPlayer(Login); if (Player != Null) Layers::Attach(C_DebugMode_MainUI, Player);