feat(mp): etape 2c - ADSync spejler modulernes konfiguration til klienter (join + ændringer hvert 2 s, kun i MP)
This commit is contained in:
@@ -2137,6 +2137,8 @@ function ADSmartPickup:update(dt)
|
||||
if ADRunsController ~= nil and ADRunsController.adoptLoadedThrottled ~= nil then
|
||||
pcall(ADRunsController.adoptLoadedThrottled, getAutoDriveEnv(), dt)
|
||||
end
|
||||
-- multiplayer etape 2c: konfigurationen til klienterne (kun i et MP-spil)
|
||||
if ADSync ~= nil and ADSync.serverTick ~= nil then pcall(ADSync.serverTick, dt) end
|
||||
local ok, err = pcall(restoreStoppedVehicles)
|
||||
if not ok then
|
||||
Logging.warning(ADSmartPickup.LOG_PREFIX .. "kunne ikke gendanne varevalg: %s", tostring(err))
|
||||
|
||||
Reference in New Issue
Block a user