From 76b42ff868a07d4816f2f8e3ead59d04510b4ff0 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 27 May 2023 14:42:17 +1000 Subject: [PATCH] Remove funky IoC resolve (#16848) --- Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index 1c50644a42..bd7e431ae4 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -703,8 +703,7 @@ namespace Content.Client.Preferences.UI if (_previewDummy != null) _entMan.DeleteEntity(_previewDummy.Value); - var playTime = IoCManager.Resolve(); - playTime.Updated -= UpdateRoleRequirements; + _requirements.Updated -= UpdateRoleRequirements; _preferencesManager.OnServerDataLoaded -= LoadServerData; }