Fixes bar sign not changing due to wrong conditional.
This commit is contained in:
@@ -69,7 +69,7 @@ namespace Content.Server.BarSign.Systems
|
|||||||
|
|
||||||
if (component.Owner.TryGetComponent(out SpriteComponent? sprite))
|
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.LayerSetState(0, "empty");
|
||||||
sprite.LayerSetShader(0, "shaded");
|
sprite.LayerSetShader(0, "shaded");
|
||||||
|
|||||||
4
Resources/Changelog/Parts/barsign.yml
Normal file
4
Resources/Changelog/Parts/barsign.yml
Normal 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.
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
female:
|
female:
|
||||||
collection: FemaleScreams
|
collection: FemaleScreams
|
||||||
wilhelm:
|
wilhelm:
|
||||||
path: /Audio/Voice/Human/wilhelm_scream.ogg
|
path: /Audio/Voice/Human/wilhelm_scream.oggaaa
|
||||||
|
|
||||||
- type: action
|
- type: action
|
||||||
actionType: VoxScream
|
actionType: VoxScream
|
||||||
|
|||||||
Reference in New Issue
Block a user