-using Content.Shared.Materials;
+using Content.Shared.Materials;
using Robust.Client.GameObjects;
namespace Content.Client.Materials;
{
if (!base.TryInsertMaterialEntity(user, toInsert, receiver, storage, material, composition))
return false;
- _transform.DetachParentToNull(toInsert, Transform(toInsert));
+ _transform.DetachEntity(toInsert, Transform(toInsert));
return true;
}
}
// TODO PREDICT ENTITY DELETION: This should really just be a normal entity deletion call.
if (component.Count <= 0 && !component.Lingering)
{
- Xform.DetachParentToNull(uid, Transform(uid));
+ Xform.DetachEntity(uid, Transform(uid));
return;
}
if (action.Container == null)
return;
- _transform.DetachParentToNull(actionId, Transform(actionId));
+ _transform.DetachEntity(actionId, Transform(actionId));
// Container removal events should have removed the action from the action container.
// However, just in case the container was already deleted we will still manually clear the container field
if (_netMan.IsClient)
{
- _transform.DetachParentToNull(uid, xform);
+ _transform.DetachEntity(uid, xform);
return;
}
if (TerminatingOrDeleted(item))
return;
- _transformSystem.DetachParentToNull(item, Transform(item));
+ _transformSystem.DetachEntity(item, Transform(item));
if (_netManager.IsServer)
QueueDel(item);
}
else
{
// Similar to below just due to prediction.
- TransformSystem.DetachParentToNull(chamberEnt.Value, Transform(chamberEnt.Value));
+ TransformSystem.DetachEntity(chamberEnt.Value, Transform(chamberEnt.Value));
}
}