]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Move StylesheetManager initialization to `PostInit()` (#16352)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Fri, 12 May 2023 14:02:25 +0000 (02:02 +1200)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 14:02:25 +0000 (00:02 +1000)
Content.Client/Entry/EntryPoint.cs

index c6b9b13877cdd6e18be69b4a01ac01f144ce24d4..3a1f2e1cd3308f60d29ec27c57188a4c147548e4 100644 (file)
@@ -123,7 +123,6 @@ namespace Content.Client.Entry
 
             _componentFactory.GenerateNetIds();
             _adminManager.Initialize();
-            _stylesheetManager.Initialize();
             _screenshotHook.Initialize();
             _changelogManager.Initialize();
             _rulesManager.Initialize();
@@ -143,6 +142,9 @@ namespace Content.Client.Entry
         public override void PostInit()
         {
             base.PostInit();
+
+            _stylesheetManager.Initialize();
+
             // Setup key contexts
             ContentContexts.SetupContexts(_inputManager.Contexts);