Skip to content

Commit

Permalink
fix LoadoutSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Dec 5, 2023
1 parent 43c3ab2 commit 70b7962
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Server/Corvax/Loadout/LoadoutSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ private void OnPlayerSpawned(PlayerSpawnCompleteEvent ev)
// Automatically search empty slot for clothes to equip
string? firstSlotName = null;
bool isEquiped = false;
foreach (var slot in _inventorySystem.GetSlots(ev.Mob))
if (!_inventorySystem.TryGetSlots(ev.Mob, out var slotDefinitions))
return;
foreach (var slot in slotDefinitions)
{
if (!clothing.Slots.HasFlag(slot.SlotFlags))
continue;
Expand Down

0 comments on commit 70b7962

Please sign in to comment.