LuaGenericOnOffControlBehavior::circuit_condition seems incorrect

Place to report issues and suggest improvements to the API documentation.
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 418
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

LuaGenericOnOffControlBehavior::circuit_condition seems incorrect

Post by Stringweasel »

It seems that LuaGenericOnOffControlBehavior::circuit_condition has the type CircuitConditionDefinition where it should be CircuitCondition. The example is also wrong.

Reasons why I believe this:
- Tested in-game.
- CircuitConditionDefinition has a additional parameter `satisfied` which doesn't really make sense being there.
- There's a TODOC, so maybe it was never revisisted.
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration
Post Reply

Return to “Documentation Improvement Requests”