Don't return zero-value signals in get_merged_signals
Posted: Sun Jul 07, 2024 4:07 am
Instead of returning a signal with a count of 0, could get_merged_signals() instead leave the signal out of the list, and if there aren't any non-zero signals, just return nil?
My idea to detect changes is to have the iopoint linked to a lamp on a hidden surface, and the lamp would have a constant combinator connected to it with the other color of wire. Whenever a signal comes in, the mod will detect when get_merged_signals !=nil. The constant combinator would then negate the signal at the lamp so that the merged signal is once again nil.