coil
2019-08-26 d119a6748264a4f9825eebdd4ddeb2421cc4784a
refs
author coil <51716565+coil0@users.noreply.github.com>
Monday, August 26, 2019 19:45 +0200
committer SmallJoker <SmallJoker@users.noreply.github.com>
Monday, August 26, 2019 19:45 +0200
commitd119a6748264a4f9825eebdd4ddeb2421cc4784a
tree 0a3480af2acf5649e9714f39be68a856bdce41e5 tree | zip | gz
parent bb05ff8fd210fc9fac0b521f15e755380e6916d3 view | diff
Refactor switching station ABMs (#508)

When the function is defined inside the ABM, a new closure is allocated every time the ABM runs.
Since the action function is already way too long, it's better for readability and performance to split it out.
1 files modified
33 ■■■■ changed files
technic/machines/switching_station.lua 33 ●●●● diff | view | raw | blame | history