And a bunch more.
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Content.Client.Disposal.Systems
|
||||
{
|
||||
if (component.Deleted) return true;
|
||||
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(component.Owner, out ClientUserInterfaceComponent? userInterface)) return true;
|
||||
if (!EntityManager.TryGetComponent(component.Owner, out ClientUserInterfaceComponent? userInterface)) return true;
|
||||
|
||||
var state = component.UiState;
|
||||
if (state == null) return true;
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Content.Client.Disposal.Visualizers
|
||||
case VisualState.Flushing:
|
||||
sprite.LayerSetState(DisposalUnitVisualLayers.Base, _stateAnchored);
|
||||
|
||||
var animPlayer = IoCManager.Resolve<IEntityManager>().GetComponent<AnimationPlayerComponent>(appearance.Owner);
|
||||
var animPlayer = entities.GetComponent<AnimationPlayerComponent>(appearance.Owner);
|
||||
|
||||
if (!animPlayer.HasRunningAnimation(AnimationKey))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user