]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add mapping load acts (#30722)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 7 Aug 2024 00:04:44 +0000 (10:04 +1000)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 00:04:44 +0000 (10:04 +1000)
Smug doesn't seem to have time to fix mapping state and I don't want to dump more time into it so.

Content.Client/Commands/MappingClientSideSetupCommand.cs

index eb2d13c95409a53edac7b8ed5b7672baafdcf19e..3255e85e18f893cbe77f54c325eb4c93898c124c 100644 (file)
@@ -1,3 +1,4 @@
+using Content.Client.Actions;
 using Content.Client.Mapping;
 using Content.Client.Markers;
 using JetBrains.Annotations;
@@ -25,7 +26,7 @@ internal sealed class MappingClientSideSetupCommand : LocalizedCommands
             _entitySystemManager.GetEntitySystem<MarkerSystem>().MarkersVisible = true;
             _lightManager.Enabled = false;
             shell.ExecuteCommand("showsubfloorforever");
-            _stateManager.RequestStateChange<MappingState>();
+            _entitySystemManager.GetEntitySystem<ActionsSystem>().LoadActionAssignments("/mapping_actions.yml", false);
         }
     }
 }