added fixes

This commit is contained in:
Monica Moniot
2022-11-11 22:13:33 -05:00
parent 52f6088904
commit 7f44dae0ec
7 changed files with 29 additions and 20 deletions

View File

@@ -220,10 +220,10 @@ function register_gui_actions()
local comb = global.to_comb[msg[2]]
if not comb or not comb.valid then return end
local a = comb.get_or_create_control_behavior()--[[@as LuaArithmeticCombinatorControlBehavior]]
local control = comb.get_or_create_control_behavior()--[[@as LuaArithmeticCombinatorControlBehavior]]
local allows_all_trains = not element.state
set_comb_allows_all_trains(a, allows_all_trains)
set_comb_allows_all_trains(control, allows_all_trains)
local stop = global.to_stop[comb.unit_number]
if stop then