Remove most usages of obsolete TransformComponent methods (#19571)
This commit is contained in:
@@ -7,6 +7,7 @@ namespace Content.Shared.Containers;
|
||||
public sealed class ContainerFillSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly SharedContainerSystem _containerSystem = default!;
|
||||
[Dependency] private readonly SharedTransformSystem _transform = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -39,7 +40,7 @@ public sealed class ContainerFillSystem : EntitySystem
|
||||
if (!container.Insert(ent, EntityManager, null, xform))
|
||||
{
|
||||
Log.Error($"Entity {ToPrettyString(uid)} with a {nameof(ContainerFillComponent)} failed to insert an entity: {ToPrettyString(ent)}.");
|
||||
Transform(ent).AttachToGridOrMap();
|
||||
_transform.AttachToGridOrMap(ent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user