Even more resolve removals.
This commit is contained in:
@@ -7,6 +7,8 @@ namespace Content.Server.Singularity.Components
|
||||
[RegisterComponent]
|
||||
public class SingularityGeneratorComponent : Component
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "SingularityGenerator";
|
||||
|
||||
[ViewVariables] private int _power;
|
||||
@@ -21,8 +23,7 @@ namespace Content.Server.Singularity.Components
|
||||
_power = value;
|
||||
if (_power > 15)
|
||||
{
|
||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
entityManager.SpawnEntity("Singularity", IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(Owner).Coordinates);
|
||||
_entMan.SpawnEntity("Singularity", _entMan.GetComponent<TransformComponent>(Owner).Coordinates);
|
||||
//dont delete ourselves, just wait to get eaten
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user