Inline Delete
This commit is contained in:
@@ -154,7 +154,7 @@ namespace Content.Server.Kitchen.Components
|
||||
|
||||
Owner.PopupMessageEveryone(Loc.GetString("comp-kitchen-spike-kill", ("user", user), ("victim", victim)));
|
||||
// TODO: Need to be able to leave them on the spike to do DoT, see ss13.
|
||||
victim.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(victim.Uid);
|
||||
|
||||
SoundSystem.Play(Filter.Pvs(Owner), SpikeSound.GetSound(), Owner);
|
||||
}
|
||||
|
||||
@@ -411,7 +411,7 @@ namespace Content.Server.Kitchen.Components
|
||||
{
|
||||
var item = _storage.ContainedEntities.ElementAt(i);
|
||||
_storage.Remove(item);
|
||||
item.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(item.Uid);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ namespace Content.Server.Kitchen.Components
|
||||
if (IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(item.Uid).EntityPrototype.ID == recipeSolid.Key)
|
||||
{
|
||||
_storage.Remove(item);
|
||||
item.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(item.Uid);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace Content.Server.Kitchen.EntitySystems
|
||||
solution.ScaleSolution(juiceEvent.Scalar);
|
||||
_solutionsSystem.TryAddSolution(beakerEntity.Uid, component.HeldBeaker, solution);
|
||||
_solutionsSystem.RemoveAllSolution(beakerEntity.Uid, solution);
|
||||
item.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(item.Uid);
|
||||
}
|
||||
|
||||
component.Busy = false;
|
||||
@@ -351,7 +351,7 @@ namespace Content.Server.Kitchen.EntitySystems
|
||||
component.HeldBeaker.MaxVolume) continue;
|
||||
juiceMe.JuiceSolution.ScaleSolution(juiceEvent.Scalar);
|
||||
_solutionsSystem.TryAddSolution(beakerEntity.Uid, component.HeldBeaker, juiceMe.JuiceSolution);
|
||||
item.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(item.Uid);
|
||||
}
|
||||
|
||||
bui?.SendMessage(new SharedReagentGrinderComponent.ReagentGrinderWorkCompleteMessage());
|
||||
|
||||
Reference in New Issue
Block a user