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

@@ -9,6 +9,8 @@ public abstract class SharedPowerCellSystem : EntitySystem
{
[Dependency] private readonly ItemSlotsSystem _itemSlotsSystem = default!;
public const string CellSlotContainer = "cell_slot";
public override void Initialize()
{
base.Initialize();
@@ -58,7 +60,7 @@ public abstract class SharedPowerCellSystem : EntitySystem
private void OnCellSlotInit(EntityUid uid, PowerCellSlotComponent component, ComponentInit args)
{
_itemSlotsSystem.AddItemSlot(uid, "cellslot_cell_container", component.CellSlot);
_itemSlotsSystem.AddItemSlot(uid, CellSlotContainer, component.CellSlot);
if (string.IsNullOrWhiteSpace(component.CellSlot.Name) &&
!string.IsNullOrWhiteSpace(component.SlotName))