diff options
Diffstat (limited to 'advtrains_luaautomation/environment.lua')
-rw-r--r--[-rwxr-xr-x] | advtrains_luaautomation/environment.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/advtrains_luaautomation/environment.lua b/advtrains_luaautomation/environment.lua index 6b1a283..d85bedc 100755..100644 --- a/advtrains_luaautomation/environment.lua +++ b/advtrains_luaautomation/environment.lua @@ -229,11 +229,8 @@ if advtrains.interlocking then if not ts_id then return nil end ts_id = tostring(ts_id) local response = advtrains.interlocking.db.get_ts(ts_id) - if response == nil then - return false - else - return response.trains - end + if not response then return false end + return table.copy(response.trains) end end |