mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
parent
c25b103316
commit
97f4f0a9bd
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using Content.Shared.Crayon;
|
||||
using Content.Shared.Crayon;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.Maths;
|
||||
|
|
@ -19,9 +19,9 @@ namespace Content.Client.Crayon
|
|||
sprite.LayerSetState(0, state);
|
||||
}
|
||||
|
||||
if (component.TryGetData(CrayonVisuals.Color, out Color color))
|
||||
if (component.TryGetData(CrayonVisuals.Color, out string color))
|
||||
{
|
||||
sprite.LayerSetColor(0, color);
|
||||
sprite.LayerSetColor(0, Color.FromName(color));
|
||||
}
|
||||
|
||||
if (component.TryGetData(CrayonVisuals.Rotation, out Angle rotation))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue