Skip to content

Commit

Permalink
Try using EntityManager instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyyapril committed Nov 16, 2024
1 parent e2f3a84 commit e171cb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Client/Explosion/ExplosionOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public sealed class ExplosionOverlay : Overlay
[Dependency] private readonly IRobustRandom _robustRandom = default!;
[Dependency] private readonly IEntityManager _entMan = default!;
[Dependency] private readonly IPrototypeManager _proto = default!;
[Dependency] private readonly SharedAppearanceSystem _appearanceSystem = default!;

private SharedAppearanceSystem _appearanceSystem = default!;

public override OverlaySpace Space => OverlaySpace.WorldSpaceBelowFOV;

Expand All @@ -25,6 +26,7 @@ public sealed class ExplosionOverlay : Overlay
public ExplosionOverlay()
{
IoCManager.InjectDependencies(this);
_appearanceSystem = _entMan.System<SharedAppearanceSystem>();
_shader = _proto.Index<ShaderPrototype>("unshaded").Instance();
}

Expand Down

0 comments on commit e171cb3

Please sign in to comment.