Skip to content

Commit c3463f3

Browse files
committed
Fix build for error with grantedEffect on gems
1 parent 3bca74c commit c3463f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

editPathOfBuildingBuild.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ sed -E -i '' "$SED_COMMAND" src/Modules/BuildSiteTools.lua
1919
# Do not remove SSL for LaunchInstall and Update as that's more sensitive, but
2020
# also unused.
2121

22+
# Add nil checks for grantedEffect. Without it, we got an error on 2023-12-18:
23+
# "Error loading main script: Data/Uniques/Special/Generated.lua:239 attempt
24+
# to index local 'grantedEffect' (a nil value)
25+
# ModParser.lua got a similar error
26+
sed -i '' 's/if grantedEffect.support/if grantedEffect ~= nil and grantedEffect.support/' src/Data/Uniques/Special/Generated.lua
27+
sed -i '' 's/if not grantedEffect.hidden/if grantedEffect ~= nil and not grantedEffect.hidden/' src/Modules/ModParser.lua
28+
2229
# Run remaining setup
2330
unzip runtime-win32.zip lua/xml.lua lua/base64.lua lua/sha1.lua
2431
mv lua/*.lua .

0 commit comments

Comments
 (0)