spray bottle fix (#5012)

* fix-spray

* move vapor rotation
This commit is contained in:
Leon Friedrich
2021-10-25 19:29:02 +13:00
committed by GitHub
parent 41524dac5b
commit e016fc9906
3 changed files with 7 additions and 18 deletions

View File

@@ -37,11 +37,6 @@ namespace Content.Client.Chemistry.Visualizers
{
base.OnChangeData(component);
if (component.TryGetData<Angle>(VaporVisuals.Rotation, out var radians))
{
SetRotation(component, radians);
}
if (component.TryGetData<Color>(VaporVisuals.Color, out var color))
{
SetColor(component, color);
@@ -63,13 +58,6 @@ namespace Content.Client.Chemistry.Visualizers
animPlayer.Play(VaporFlick, AnimationKey);
}
private void SetRotation(AppearanceComponent component, Angle rotation)
{
var sprite = component.Owner.GetComponent<ISpriteComponent>();
sprite.Rotation = rotation;
}
private void SetColor(AppearanceComponent component, Color color)
{
var sprite = component.Owner.GetComponent<ISpriteComponent>();