More container pruning (#8576)

This commit is contained in:
metalgearsloth
2022-06-12 13:29:03 +10:00
committed by GitHub
parent 58ddb19cd2
commit a983b5e2f5
42 changed files with 2534 additions and 5536 deletions

View File

@@ -17,6 +17,8 @@ namespace Content.Server.Labels
{
[Dependency] private readonly ItemSlotsSystem _itemSlotsSystem = default!;
public const string ContainerName = "paper_label";
public override void Initialize()
{
base.Initialize();
@@ -31,7 +33,7 @@ namespace Content.Server.Labels
private void OnComponentInit(EntityUid uid, PaperLabelComponent component, ComponentInit args)
{
_itemSlotsSystem.AddItemSlot(uid, component.Name, component.LabelSlot);
_itemSlotsSystem.AddItemSlot(uid, ContainerName, component.LabelSlot);
if (!EntityManager.TryGetComponent(uid, out AppearanceComponent? appearance))
return;