Skip to content

Commit

Permalink
Initialize utils before repr in RuleInit (#6447)
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 authored Sep 15, 2024
1 parent 9a51ff5 commit d8c9268
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/snippets/fix.6447.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- (#6447) Fix `repr` causing an "attempt to call upval 'match' (a nil value)" error when used in the blueprint loading scripts.
3 changes: 2 additions & 1 deletion lua/RuleInit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
__blueprints = {}

doscript '/lua/system/config.lua'
doscript '/lua/system/utils.lua'
-- repr depends on utils creating string.match
doscript '/lua/system/repr.lua'
doscript '/lua/system/debug.lua'
doscript '/lua/system/utils.lua'

LOG('Active game mods for blueprint loading: ',repr(__active_mods))

Expand Down
1 change: 1 addition & 0 deletions lua/globalInit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ doscript '/lua/system/config.lua'
-- Load system modules
doscript '/lua/system/import.lua'
doscript '/lua/system/utils.lua'
-- repr depends on utils creating string.match
doscript '/lua/system/repr.lua'
doscript '/lua/system/debug.lua'
doscript '/lua/system/class.lua'
Expand Down

0 comments on commit d8c9268

Please sign in to comment.