Skip to content

Commit

Permalink
Fix paths for packages without init
Browse files Browse the repository at this point in the history
  • Loading branch information
hoontee committed Oct 4, 2023
1 parent f713bdb commit 8abf912
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Lync/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,11 @@ function assignMap(robloxPath, mapDetails, mtimeMs) {
if (localPath != undefined) {
if (typeof localPath == 'object') {
if ('optional' in localPath) {
localPath = localPath.optional
mapDetails.Path = localPath.optional
localPath = mapDetails.Path
} else if ('package' in localPath) {
localPath = localPath.package
mapDetails.Path = localPath.package
localPath = mapDetails.Path
}
}
if (localPathIsIgnored(localPath)) return
Expand Down Expand Up @@ -712,6 +714,7 @@ async function mapJsonRecursive(jsonPath, target, robloxPath, key, firstLoadingE
} catch (err) {
console.error(red('Failed to download package'), green(localPath.package) + red(':'), yellow(err))
}
map[nextRobloxPath].Path.package = assetFile
if (fs.existsSync(assetFile + assetExt)) {
await mapDirectory(assetFile + assetExt, nextRobloxPath, 'JSON')
}
Expand Down

0 comments on commit 8abf912

Please sign in to comment.