Panakotta00 / FicsIt-Networks

Control, Monitor, Manage and Automate your Satisfactory.
https://ficsit.app/mod/FicsItNetworks
GNU General Public License v3.0
155 stars 50 forks source link

`NetworkUpdate` signal isn't triggered on component removed #274

Open yackimoff opened 9 months ago

yackimoff commented 9 months ago

Describe the bug FINAdvancedNetworkConnectionComponent.NetworkUpdate signal is not triggered when a component is removed from the network.

To Reproduce Steps to reproduce the behavior:

  1. Build this computer: case, CPU, RAM.
  2. Use this snippet in your EEPROM:
    
    case = component.proxy(component.findComponent(findClass("ComputerCase"))[1])
    netCon = case:getNetworkConnectors()[1]

event.ignoreAll() event.clear() event.listen(netCon) while true do e, s, changeType, comp = event.pull() print(e, s, changeType, comp) end


3. Add a codeable splitter to your network. Observe that `print` worked.
4. Remove the splitter from the network. Observe that nothing has been printed.

**Expected behavior**
The signal is triggered when a component is removed.