CompFactory updates (#37559)
This commit is contained in:
@@ -28,7 +28,6 @@ namespace Content.Server.Polymorph.Systems;
|
||||
|
||||
public sealed partial class PolymorphSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IComponentFactory _compFact = default!;
|
||||
[Dependency] private readonly SharedMapSystem _map = default!;
|
||||
[Dependency] private readonly IPrototypeManager _proto = default!;
|
||||
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
||||
@@ -213,7 +212,7 @@ public sealed partial class PolymorphSystem : EntitySystem
|
||||
|
||||
MakeSentientCommand.MakeSentient(child, EntityManager);
|
||||
|
||||
var polymorphedComp = _compFact.GetComponent<PolymorphedEntityComponent>();
|
||||
var polymorphedComp = Factory.GetComponent<PolymorphedEntityComponent>();
|
||||
polymorphedComp.Parent = uid;
|
||||
polymorphedComp.Configuration = configuration;
|
||||
AddComp(child, polymorphedComp);
|
||||
|
||||
Reference in New Issue
Block a user