From a938832b0f1d678e2288fa2b297b32c073733208 Mon Sep 17 00:00:00 2001 From: FoxxoTrystan Date: Wed, 1 May 2024 19:22:40 +0200 Subject: [PATCH] Update LanguageMenuUIController.cs --- .../UserInterface/Systems/Language/LanguageMenuUIController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Content.Client/UserInterface/Systems/Language/LanguageMenuUIController.cs b/Content.Client/UserInterface/Systems/Language/LanguageMenuUIController.cs index a9dbe22ae13..e84e308b7d9 100644 --- a/Content.Client/UserInterface/Systems/Language/LanguageMenuUIController.cs +++ b/Content.Client/UserInterface/Systems/Language/LanguageMenuUIController.cs @@ -42,6 +42,7 @@ public void OnStateEntered(GameplayState state) { DebugTools.Assert(_languageWindow == null); + var entManager = IoCManager.Resolve(); var clientLanguageSystem = entManager.EntitySysManager.GetEntitySystem(); clientLanguageSystem.LanguagesUpdatedHook += LanguagesUpdatedHook; @@ -59,6 +60,7 @@ public void OnStateExited(GameplayState state) _languageWindow = null; } + var entManager = IoCManager.Resolve(); var clientLanguageSystem = entManager.EntitySysManager.GetEntitySystem(); clientLanguageSystem.LanguagesUpdatedHook -= LanguagesUpdatedHook;