Hey,
I found something that is a bit weird.
LuaCircuitNetwork::get_signal returns a signal value/count as a int, not a full Signal.
On the other hand LuaConstantCombinatorControlBehavior::get_signal returns a full Signal.
Shouldnt it be LuaCircuitNetwork::get_signal_value instead of LuaCircuitNetwork::get_signal?
Simple Reason is: You dont get the signal, you get the signal value as a int.
LuaCircuitNetwork::get_signal vs LuaConstantCombinatorControlBehavior::get_signal
- LuziferSenpai
- Filter Inserter
- Posts: 372
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: A consistency error in the API
Moved to modding interface requests.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.