From 32416334c425a71f2f20abe8bfb550d9747f3b70 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Wed, 8 Dec 2021 12:23:33 +0100 Subject: [PATCH] Fix build --- Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs b/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs index 2a7b5d5b37..db70686e8b 100644 --- a/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs +++ b/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs @@ -138,11 +138,12 @@ namespace Content.Client.Lobby.UI } } - public void GiveDummyJobClothes(EntityUid dummy, HumanoidCharacterProfile profile) + public static void GiveDummyJobClothes(EntityUid dummy, HumanoidCharacterProfile profile) { var protoMan = IoCManager.Resolve(); - var inventory = _entMan.GetComponent(dummy); + var entMan = IoCManager.Resolve(); + var inventory = entMan.GetComponent(dummy); var highPriorityJob = profile.JobPriorities.FirstOrDefault(p => p.Value == JobPriority.High).Key; @@ -153,7 +154,6 @@ namespace Content.Client.Lobby.UI if (job.StartingGear != null) { - var entityMan = _entMan; var gear = protoMan.Index(job.StartingGear); foreach (var slot in AllSlots) @@ -161,9 +161,9 @@ namespace Content.Client.Lobby.UI var itemType = gear.GetGear(slot, profile); if (itemType != string.Empty) { - var item = entityMan.SpawnEntity(itemType, MapCoordinates.Nullspace); + var item = entMan.SpawnEntity(itemType, MapCoordinates.Nullspace); inventory.SetSlotVisuals(slot, item); - _entMan.DeleteEntity(item); + entMan.DeleteEntity(item); } } }