Fixes bar sign not changing due to wrong conditional.

This commit is contained in:
Vera Aguilera Puerto
2021-10-01 12:28:30 +02:00
parent 66b088a0dc
commit 26808d2e9a
5 changed files with 6 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ namespace Content.Server.BarSign.Systems
if (component.Owner.TryGetComponent(out SpriteComponent? sprite))
{
if (!component.Owner.TryGetComponent(out ApcPowerReceiverComponent? receiver) || receiver.Powered)
if (!component.Owner.TryGetComponent(out ApcPowerReceiverComponent? receiver) || !receiver.Powered)
{
sprite.LayerSetState(0, "empty");
sprite.LayerSetShader(0, "shaded");