Disposals air + new atmos expose event (#6798)
Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
@@ -47,6 +47,9 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
||||
|
||||
foreach (var entity in holder.Container.ContainedEntities.ToArray())
|
||||
{
|
||||
if (HasComp<BeingDisposedComponent>(entity))
|
||||
RemComp <BeingDisposedComponent>(entity);
|
||||
|
||||
if (EntityManager.TryGetComponent(entity, out IPhysBody? physics))
|
||||
{
|
||||
physics.CanCollide = true;
|
||||
@@ -101,6 +104,12 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (var ent in holder.Container.ContainedEntities)
|
||||
{
|
||||
var comp = EnsureComp<BeingDisposedComponent>(ent);
|
||||
comp.Holder = holder.Owner;
|
||||
}
|
||||
|
||||
// Insert into next tube
|
||||
holderTransform.Coordinates = new EntityCoordinates(toUid, Vector2.Zero);
|
||||
if (!to.Contents.Insert(holder.Owner))
|
||||
|
||||
Reference in New Issue
Block a user