fix: align NBT destination with CRN display stopovers
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- 1. Configuration & Constants
|
-- 1. Configuration & Constants
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
local APP_VERSION_TEXT = "v1.0.31"
|
local APP_VERSION_TEXT = "v1.0.32"
|
||||||
|
|
||||||
local CONFIG = {
|
local CONFIG = {
|
||||||
CLOUD_URL = "ws://stabadmin.fse-media.group",
|
CLOUD_URL = "ws://stabadmin.fse-media.group",
|
||||||
@@ -2423,6 +2423,9 @@ function Main.loop()
|
|||||||
if st then
|
if st then
|
||||||
local trainName = st.TrainName or "Unknown"
|
local trainName = st.TrainName or "Unknown"
|
||||||
local destination = st.Destination or "Unknown"
|
local destination = st.Destination or "Unknown"
|
||||||
|
if type(stop.Stopovers) == "table" and #stop.Stopovers > 0 then
|
||||||
|
destination = stop.Stopovers[#stop.Stopovers] or destination
|
||||||
|
end
|
||||||
local platform = stop.StationInfo and stop.StationInfo.Platform or State.stationPlatform or "1"
|
local platform = stop.StationInfo and stop.StationInfo.Platform or State.stationPlatform or "1"
|
||||||
local cancelled = false
|
local cancelled = false
|
||||||
local reason = nil
|
local reason = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user