]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix lightbulb color (#39623)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Wed, 13 Aug 2025 22:45:51 +0000 (00:45 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Aug 2025 22:45:51 +0000 (15:45 -0700)
Content.Shared/Light/EntitySystems/SharedLightBulbSystem.cs

index 34c986b4de3d7bd90f0c9ddba6c5ef1c24cdca17..b2e9720984d9d02737d66dea6788ed0621ce7db5 100644 (file)
@@ -22,8 +22,7 @@ public abstract class SharedLightBulbSystem : EntitySystem
     private void OnInit(EntityUid uid, LightBulbComponent bulb, ComponentInit args)
     {
         // update default state of bulbs
-        SetColor(uid, bulb.Color, bulb);
-        SetState(uid, bulb.State, bulb);
+        UpdateAppearance(uid, bulb);
     }
 
     private void HandleLand(EntityUid uid, LightBulbComponent bulb, ref LandEvent args)