Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxoTrystan committed Aug 23, 2024
1 parent 00ea1ad commit 5fb6b27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Content.Shared/Clothing/EntitySystems/ClothingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ private void QuickEquip(
{
foreach (var slotDef in userEnt.Comp1.Slots)
{
// Do not attempt to quick-equip clothing in pocket slots.
// We should probably add a special flag to SlotDefinition to skip quick equip if more similar slots get added.
if (slotDef.SlotFlags.HasFlag(SlotFlags.POCKET))
continue;

if (!_invSystem.CanEquip(userEnt, toEquipEnt, slotDef.Name, out _, slotDef, userEnt, toEquipEnt))
continue;

Expand Down Expand Up @@ -275,4 +280,4 @@ public void SetLayerState(ClothingComponent clothing, string slot, string mapKey
}

#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
state: oracle-0
- type: Speech
speechSounds: Tenor
- type: PotentialPsionic
- type: Psionic
- type: SolutionContainerManager
solutions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
special:
- !type:AddComponentSpecial
components:
- type: PotentialPsionic
- type: Psionic
- !type:AddComponentSpecial
components:
Expand Down

0 comments on commit 5fb6b27

Please sign in to comment.