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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

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

View file

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