From 8abf912cd7c2d0ab86f4e1bd15eb3e73aa4b5b1f Mon Sep 17 00:00:00 2001 From: hoontee Date: Tue, 3 Oct 2023 22:18:25 -0500 Subject: [PATCH] Fix paths for packages without init --- Lync/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Lync/index.js b/Lync/index.js index 024fa5f..d8a9f6b 100644 --- a/Lync/index.js +++ b/Lync/index.js @@ -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 @@ -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') }