feat(mp): etape 2c - ADSync spejler modulernes konfiguration til klienter (join + ændringer hvert 2 s, kun i MP)

This commit is contained in:
2026-10-25 21:28:33 +01:00
parent 0f87c42f47
commit 8067d9bcb3
4 changed files with 205 additions and 0 deletions
+2
View File
@@ -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))