Skip to content

Commit

Permalink
Исправлена рисовка одежды в меню персонализации (#898)
Browse files Browse the repository at this point in the history
* buff cleanade

* fix itself
  • Loading branch information
MightBeNotReal authored Nov 5, 2024
1 parent e52e962 commit fde4059
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Content.Client/Lobby/LobbyUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,16 @@ public EntityUid LoadProfileEntity(HumanoidCharacterProfile? humanoid, JobProtot
{
var loadout = humanoid.GetLoadoutOrDefault(LoadoutSystem.GetJobPrototype(job.ID), _playerManager.LocalSession, humanoid.Species, EntityManager, _prototypeManager);
//backmen-clothing: start
if (!jobClothes)
HashSet<string> groupsToShow = ["Werx", "Niz", "Socks"];
if (jobClothes)
{
foreach (var loadoutsKey in loadout.SelectedLoadouts.Keys.Where(loadoutsKey => groupsToShow.Contains(loadoutsKey)))
{
loadout.SelectedLoadouts.Remove(loadoutsKey);
}
}
else
{
HashSet<string> groupsToShow = ["Werx", "Niz", "Socks"];
foreach (var loadoutsKey in loadout.SelectedLoadouts.Keys.Where(loadoutsKey => !groupsToShow.Contains(loadoutsKey)))
{
loadout.SelectedLoadouts.Remove(loadoutsKey);
Expand Down

0 comments on commit fde4059

Please sign in to comment.