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,
PowerConsumerReceivedChanged args)
{
component.Master!.PowerBoxReceivedChanged(args);
if (component.Master != null)
component.Master.PowerBoxReceivedChanged(args);
}
}
}