Power improvements:

* crashes fixed
* made lights an RSI.
This commit is contained in:
Pieter-Jan Briers
2018-05-27 21:45:31 +02:00
parent 89d8208abd
commit e36033a3ac
12 changed files with 99 additions and 46 deletions

View File

@@ -19,12 +19,12 @@ namespace Content.Server.GameObjects.Components.Power
{
if (args.Powered)
{
sprite.LayerSetTexture(0, "Objects/wall_light.png");
sprite.LayerSetState(0, "on");
light.State = LightState.On;
}
else
{
sprite.LayerSetTexture(0, "Objects/wall_light_off.png");
sprite.LayerSetState(0, "off");
light.State = LightState.Off;
}
};