parent
1250b388f3
commit
04a2c2e968
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ public sealed class AmeControllerSystem : EntitySystem
|
|||
// how much power can be produced at the current settings, in kW
|
||||
// we don't use max. here since this is what is set in the Controller, not what the AME is actually producing
|
||||
float targetedPowerSupply = 0;
|
||||
if (TryGetAMENodeGroup(uid, out var group))
|
||||
if (TryGetAMENodeGroup(uid, out var group) && group.CoreCount > 0)
|
||||
{
|
||||
coreCount = group.CoreCount;
|
||||
targetedPowerSupply = group.CalculatePower(controller.InjectionAmount, group.CoreCount) / 1000;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue