Update version to 0.2.2, improve network cache handling, and enhance train state tracking
This commit is contained in:
@@ -103,7 +103,7 @@ script.on_configuration_changed(function()
|
||||
storage.playerDeathCause = storage.playerDeathCause or {}
|
||||
storage.constructedEntites = storage.constructedEntites or {}
|
||||
storage.deconstructedEntities = storage.deconstructedEntities or{}
|
||||
storage.networkCache =storage.networkCache or {}
|
||||
storage.networkCache = storage.networkCache or {}
|
||||
storage.trains = storage.trains or {}
|
||||
---@type table<uint, trainStat>
|
||||
storage.trainStats = storage.trainStats or {}
|
||||
@@ -230,10 +230,11 @@ function SendAll(event)
|
||||
isInitialized = true
|
||||
|
||||
if scannedGrids == false then
|
||||
storage.networkCache = nil
|
||||
ScanNetworks()
|
||||
scannedGrids = true
|
||||
end
|
||||
|
||||
|
||||
if scannedLabs == false then
|
||||
ScanLabs()
|
||||
scannedLabs = true
|
||||
|
||||
Reference in New Issue
Block a user