Inline Delete
This commit is contained in:
@@ -363,7 +363,7 @@ namespace Content.Server.GameTicking
|
||||
{
|
||||
// TODO: Maybe something less naive here?
|
||||
// FIXME: Actually, definitely.
|
||||
entity.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(entity.Uid);
|
||||
}
|
||||
|
||||
_mapManager.Restart();
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Content.Server.GameTicking.Presets
|
||||
foreach (var slot in victimSlots)
|
||||
{
|
||||
if (inventory.TryGetSlotItem(slot, out ItemComponent? vItem))
|
||||
vItem.Owner.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(vItem.Owner.Uid);
|
||||
}
|
||||
|
||||
// Replace their items:
|
||||
|
||||
Reference in New Issue
Block a user