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");

View File

@@ -0,0 +1,4 @@
author: Zumorica
changes:
- type: Fix # One of the following: Add, Remove, Tweak, Fix
message: Fixes bar sign not changing its sprite correctly.

View File

@@ -33,7 +33,7 @@
female:
collection: FemaleScreams
wilhelm:
path: /Audio/Voice/Human/wilhelm_scream.ogg
path: /Audio/Voice/Human/wilhelm_scream.oggaaa
- type: action
actionType: VoxScream