From 97f4f0a9bda969508e56b68d754dda68a4abd3cf Mon Sep 17 00:00:00 2001 From: Galactic Chimp <63882831+GalacticChimp@users.noreply.github.com> Date: Sun, 27 Jun 2021 10:01:26 +0200 Subject: [PATCH] #4222 fixed crayon cast issue causing exception (#4229) --- Content.Client/Crayon/CrayonDecalVisualizer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Client/Crayon/CrayonDecalVisualizer.cs b/Content.Client/Crayon/CrayonDecalVisualizer.cs index bfeac8b9f6..83d7985a42 100644 --- a/Content.Client/Crayon/CrayonDecalVisualizer.cs +++ b/Content.Client/Crayon/CrayonDecalVisualizer.cs @@ -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))