Fix PA construction crash, make it clear that PA construction needs LV cables (#4506)

This commit is contained in:
20kdc
2021-08-22 16:50:43 +01:00
committed by GitHub
parent ddbfb186d9
commit cdb0727d78
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,8 @@ namespace Content.Server.ParticleAccelerator.EntitySystems
ParticleAcceleratorPowerBoxComponent component, ParticleAcceleratorPowerBoxComponent component,
PowerConsumerReceivedChanged args) PowerConsumerReceivedChanged args)
{ {
component.Master!.PowerBoxReceivedChanged(args); if (component.Master != null)
component.Master.PowerBoxReceivedChanged(args);
} }
} }
} }

View File

@@ -1,6 +1,6 @@
- type: stack - type: stack
id: Cable id: Cable
name: cable name: lv cable
icon: "/Textures/Objects/Tools/cable-coils.rsi/coil-30.png" icon: "/Textures/Objects/Tools/cable-coils.rsi/coil-30.png"
spawn: CableApcStack1 spawn: CableApcStack1