Make sure that power flow won't exceed network capabilities

This commit is contained in:
2023-11-14 17:05:36 +01:00
parent 340c46bf48
commit 42130c90a7
2 changed files with 24 additions and 5 deletions

View File

@@ -103,7 +103,8 @@ local function registerCable(name,displayName,size,flow,registerInsulated)
"group:_industrialtest_hasPowerOutput",
"group:_industrialtest_cable"
},
on_construct=cable.onConstruct
on_construct=cable.onConstruct,
_industrialtest_cableFlow=flow
}
if industrialtest.mtgAvailable then
definition.groups={