Prevent epilepsy seizures from lights running out of power.

This commit is contained in:
Pieter-Jan Briers
2019-03-25 22:47:54 +01:00
parent a41bd181e1
commit e3a39a21a2

View File

@@ -140,9 +140,9 @@ namespace Content.Server.GameObjects.Components.Power
switch (LightBulb.State) switch (LightBulb.State)
{ {
case LightBulbState.Normal: case LightBulbState.Normal:
device.Load = Load;
if (device.Powered) if (device.Powered)
{ {
device.Load = Load;
sprite.LayerSetState(0, "on"); sprite.LayerSetState(0, "on");
light.State = LightState.On; light.State = LightState.On;
light.Color = LightBulb.Color; light.Color = LightBulb.Color;
@@ -156,7 +156,6 @@ namespace Content.Server.GameObjects.Components.Power
} }
else else
{ {
device.Load = 0;
sprite.LayerSetState(0, "off"); sprite.LayerSetState(0, "off");
light.State = LightState.Off; light.State = LightState.Off;
} }