Inline Delete
This commit is contained in:
@@ -69,7 +69,7 @@ namespace Content.Server.Inventory.Components
|
||||
{
|
||||
if (TryGetSlotItem(slot, out ItemComponent? item))
|
||||
{
|
||||
item.Owner.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(item.Owner.Uid);
|
||||
}
|
||||
|
||||
RemoveSlot(slot);
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Content.Server.Inventory
|
||||
// Helper method that deletes the item and returns false.
|
||||
bool DeleteItem()
|
||||
{
|
||||
item.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(item.Uid);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user