Update version to 0.2.2, improve network cache handling, and enhance train state tracking
This commit is contained in:
@@ -3,9 +3,7 @@ function AddPowerPole(event)
|
||||
if e then
|
||||
storage.representativePoles[e.unit_number] = e
|
||||
-- Update cache with new network
|
||||
if e.electric_network_id then
|
||||
storage.networkCache[e.electric_network_id] = e
|
||||
end
|
||||
storage.networkCache = nil
|
||||
end
|
||||
end
|
||||
|
||||
@@ -50,7 +48,7 @@ function ScanNetworks()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function SendPowerStats()
|
||||
if options.enablePower then
|
||||
|
||||
Reference in New Issue
Block a user