Fix RGB light error (#11948)

This commit is contained in:
Leon Friedrich
2022-10-16 19:35:23 +13:00
committed by GitHub
parent 137e79ee4c
commit 5b0dfffec0

View File

@@ -41,6 +41,9 @@ namespace Content.Client.Light
private void OnComponentShutdown(EntityUid uid, RgbLightControllerComponent rgb, ComponentShutdown args)
{
if (LifeStage(uid) >= EntityLifeStage.Terminating)
return;
ResetOriginalColors(uid, rgb);
// and reset any in-hands or clothing sprites