Fix RGB light error (#11948)
This commit is contained in:
@@ -41,6 +41,9 @@ namespace Content.Client.Light
|
|||||||
|
|
||||||
private void OnComponentShutdown(EntityUid uid, RgbLightControllerComponent rgb, ComponentShutdown args)
|
private void OnComponentShutdown(EntityUid uid, RgbLightControllerComponent rgb, ComponentShutdown args)
|
||||||
{
|
{
|
||||||
|
if (LifeStage(uid) >= EntityLifeStage.Terminating)
|
||||||
|
return;
|
||||||
|
|
||||||
ResetOriginalColors(uid, rgb);
|
ResetOriginalColors(uid, rgb);
|
||||||
|
|
||||||
// and reset any in-hands or clothing sprites
|
// and reset any in-hands or clothing sprites
|
||||||
|
|||||||
Reference in New Issue
Block a user