@@ -248,9 +248,17 @@ public abstract partial class InventorySystem
|
||||
return false;
|
||||
|
||||
if (slotDefinition.DependsOnComponents is { } componentRegistry)
|
||||
{
|
||||
foreach (var (_, entry) in componentRegistry)
|
||||
{
|
||||
if (!HasComp(slotEntity, entry.Component.GetType()))
|
||||
return false;
|
||||
|
||||
if (TryComp<AllowSuitStorageComponent>(slotEntity, out var comp) &&
|
||||
_whitelistSystem.IsWhitelistFailOrNull(comp.Whitelist, itemUid))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var fittingInPocket = slotDefinition.SlotFlags.HasFlag(SlotFlags.POCKET) &&
|
||||
|
||||
Reference in New Issue
Block a user