updated readme and fixed minor exploit

This commit is contained in:
mamoniot
2022-12-23 22:05:59 -05:00
parent dd8b0b2342
commit 87f55f4631
3 changed files with 21 additions and 5 deletions

View File

@@ -173,6 +173,13 @@ function register_gui_actions()
set_comb_operation(comb, MODE_PRIMARY_IO)
elseif element.selected_index == 2 then
set_comb_operation(comb, MODE_DEPOT)
--prevent the use of the each signal with depots
local network = element.parent.parent.bottom.network
local signal = network.elem_value
if signal.name == NETWORK_EACH then
network.elem_value = nil
set_comb_network_name(comb, nil)
end
elseif element.selected_index == 3 then
set_comb_operation(comb, MODE_REFUELER)
elseif element.selected_index == 4 then