Skip to content

Commit

Permalink
Fix build for error with grantedEffect on gems
Browse files Browse the repository at this point in the history
  • Loading branch information
hsource committed Dec 19, 2023
1 parent 3bca74c commit c3463f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions editPathOfBuildingBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ sed -E -i '' "$SED_COMMAND" src/Modules/BuildSiteTools.lua
# Do not remove SSL for LaunchInstall and Update as that's more sensitive, but
# also unused.

# Add nil checks for grantedEffect. Without it, we got an error on 2023-12-18:
# "Error loading main script: Data/Uniques/Special/Generated.lua:239 attempt
# to index local 'grantedEffect' (a nil value)
# ModParser.lua got a similar error
sed -i '' 's/if grantedEffect.support/if grantedEffect ~= nil and grantedEffect.support/' src/Data/Uniques/Special/Generated.lua
sed -i '' 's/if not grantedEffect.hidden/if grantedEffect ~= nil and not grantedEffect.hidden/' src/Modules/ModParser.lua

# Run remaining setup
unzip runtime-win32.zip lua/xml.lua lua/base64.lua lua/sha1.lua
mv lua/*.lua .
Expand Down

0 comments on commit c3463f3

Please sign in to comment.