- add: genitals
This commit is contained in:
19
Content.Server/_Amour/Hole/HoleSystem.Inventory.cs
Normal file
19
Content.Server/_Amour/Hole/HoleSystem.Inventory.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Content.Shared._Amour.Hole;
|
||||
using Robust.Server.Containers;
|
||||
using Robust.Shared.Containers;
|
||||
|
||||
namespace Content.Server._Amour.Hole;
|
||||
|
||||
public sealed partial class HoleSystem
|
||||
{
|
||||
[Dependency] private readonly ContainerSystem _container = default!;
|
||||
public void InitializeInventory()
|
||||
{
|
||||
SubscribeLocalEvent<HoleInventoryComponent,ComponentInit>(OnInventoryInit);
|
||||
}
|
||||
|
||||
private void OnInventoryInit(EntityUid uid, HoleInventoryComponent component, ComponentInit args)
|
||||
{
|
||||
component.Slot = _container.EnsureContainer<ContainerSlot>(uid,HoleInventoryComponent.SlotName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user