Added, Updated and Removed Mods; Removed Backups
This commit is contained in:
@@ -610,8 +610,8 @@ function actor_on_first_update()
|
||||
if t.delete_routes[trans_from] then
|
||||
for trans_to, trans_ar in pairs(maps_t) do -- ["mil"]
|
||||
if t.delete_routes[trans_from][trans_to] then
|
||||
for idx, trans in ipairs(trans_ar) do -- ["mil"]["trc"]
|
||||
if t.delete_routes[trans_from][trans_to][trans] then
|
||||
for idx = #trans_ar, 1, -1 do -- ["mil"]["trc"]
|
||||
if t.delete_routes[trans_from][trans_to][trans_ar[idx]] then
|
||||
table.remove(txr_routes.routes[trans_from][trans_to], idx)
|
||||
-- remove key if array is empty
|
||||
if #txr_routes.routes[trans_from][trans_to] <= 0 then
|
||||
|
||||
Reference in New Issue
Block a user