- relaycomponent inherits from powertransfer, so that they're included when calculating the load/power for the grid
- deactivated powertransfer components don't carry power - fixed reactor graph lines going over the graph if load > 10 000
This commit is contained in:
@@ -124,7 +124,7 @@ namespace Barotrauma.Items.Components
|
||||
foreach (Connection c2 in c.Recipients)
|
||||
{
|
||||
PowerTransfer pt = c2.Item.GetComponent<PowerTransfer>();
|
||||
if (pt == null) continue;
|
||||
if (pt == null || !pt.IsActive) continue;
|
||||
|
||||
gridLoad += pt.PowerLoad;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user