fix: pålæsnings-sporing og UAL-pallefilter blev aldrig aktiveret (rawget sprang miljø-metatabellen over) — 1.62.309

This commit is contained in:
2026-10-17 10:40:51 +02:00
parent 145330aa01
commit 8aa014c5a4
4 changed files with 14 additions and 6 deletions
+3 -2
View File
@@ -313,8 +313,9 @@ end
-- UAL's modul: andre mods ses under deres modnavn (som FS25_AutoDrive), ikke som globale
local function ualSetLoadingFilter()
local mod = rawget(_G, "FS25_UniversalAutoload")
local ual = mod ~= nil and mod.UniversalAutoload or rawget(_G, "UniversalAutoload")
-- almindeligt opslag (ikke rawget: moddens miljø ser andre mods via en metatabel — 17/10)
local mod = FS25_UniversalAutoload
local ual = mod ~= nil and mod.UniversalAutoload or UniversalAutoload
return ual ~= nil and ual.setLoadingFilter or nil
end