]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup: Remove unnecessary ``IEntityManager`` reference from the ``EmotesUIControlle...
authorWinkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com>
Tue, 9 Sep 2025 19:00:41 +0000 (22:00 +0300)
committerGitHub <noreply@github.com>
Tue, 9 Sep 2025 19:00:41 +0000 (21:00 +0200)
Cleanup

Content.Client/UserInterface/Systems/Emotes/EmotesUIController.cs

index 8d74e2efe71b98cddc5d9476c3e16cf45dab32a8..c1bb5b5630d18938ad8897efab49b17fe3f82d41 100644 (file)
@@ -18,7 +18,6 @@ namespace Content.Client.UserInterface.Systems.Emotes;
 [UsedImplicitly]
 public sealed class EmotesUIController : UIController, IOnStateChanged<GameplayState>
 {
-    [Dependency] private readonly IEntityManager _entityManager = default!;
     [Dependency] private readonly IPrototypeManager _prototypeManager = default!;
     [Dependency] private readonly IPlayerManager _playerManager = default!;
 
@@ -189,6 +188,6 @@ public sealed class EmotesUIController : UIController, IOnStateChanged<GameplayS
 
     private void HandleRadialButtonClick(EmotePrototype prototype)
     {
-        _entityManager.RaisePredictiveEvent(new PlayEmoteMessage(prototype.ID));
+        EntityManager.RaisePredictiveEvent(new PlayEmoteMessage(prototype.ID));
     }
 }