Fix inventory containers (#11944)

This commit is contained in:
Leon Friedrich
2022-10-16 17:16:27 +13:00
committed by GitHub
parent 7e41a7a31d
commit 243876474c
5 changed files with 33 additions and 14 deletions

View File

@@ -172,7 +172,8 @@ public sealed class ClothingVisualsSystem : EntitySystem
public void InitClothing(EntityUid uid, ClientInventoryComponent? component = null, SpriteComponent? sprite = null)
{
if (!_inventorySystem.TryGetSlots(uid, out var slots, component) || !Resolve(uid, ref sprite, ref component)) return;
if (!Resolve(uid, ref sprite, ref component) || !_inventorySystem.TryGetSlots(uid, out var slots, component))
return;
foreach (var slot in slots)
{