Skip to content

Commit

Permalink
Add safe guards in case fields are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Mar 15, 2024
1 parent 1b40eee commit 70c9c85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/SessionInit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
doscript '/lua/userInit.lua'

-- Add UI-only mods to the list of mods to use
for i,m in ipairs(import("/lua/mods.lua").GetUiMods()) do
for i, m in ipairs(import("/lua/mods.lua").GetUiMods()) do
table.insert(__active_mods, m)
end

LOG('Active mods in session:')
for _, mod in __active_mods do
LOG(string.format('\t"%-30s v%02d (%-37s by %s', mod.name..'"', mod.version, mod.uid..')', mod.author))
LOG(string.format('\t"%-30s v%02d (%-37s by %s', tostring(mod.name) .. '"', tostring(mod.version), tostring(mod.uid) .. ')', tostring(mod.author)))
end

doscript '/lua/UserSync.lua'
doscript '/lua/UserSync.lua'

0 comments on commit 70c9c85

Please sign in to comment.