Prevent epilepsy seizures from lights running out of power.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user