entity.signal_state closed takes priority over reservedByNetwork. I am trying to make magic happen when a switch is set by circuit signal, but if a train enters the block the magic is broken as long as there is a train in the block. The magic in my case is putting an invisible cargo-wagon on the tracks. Since the signal_state goes to closed my next check for changes assumes the state is no longer reservedbynetwork. As a work around I could check if the condition is fulfilled but that seems like a lot of overhead
