More (IComponent) shenanigans and also some contaminated IoCManager.Resolve<IEntityManager>() very long yes calls
This commit is contained in:
@@ -75,9 +75,9 @@ namespace Content.Shared.Chemistry
|
||||
if (component.ModifierTimer > currentTime) continue;
|
||||
|
||||
_components.RemoveAt(i);
|
||||
EntityManager.RemoveComponent<MovespeedModifierMetabolismComponent>(((IComponent) component).Owner);
|
||||
EntityManager.RemoveComponent<MovespeedModifierMetabolismComponent>(component.Owner);
|
||||
|
||||
_movespeed.RefreshMovementSpeedModifiers(((IComponent) component).Owner);
|
||||
_movespeed.RefreshMovementSpeedModifiers(component.Owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user