Skip to content

Commit

Permalink
config file read changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aidant19 committed Jan 11, 2024
1 parent 6b67a86 commit 6efb816
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/ajexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ function injectModelPackPaths(modelContent, paths) {
}

function getConfigPaths(configFile) {
const f = JSON.parse(readFileSync(configFile).toString());
const resourcePackPath = f.resource_pack_mcmeta;
const dataPackPath = f.datapack_mcmeta;
const assetsPath = f.assets_path;
const ajmodelPath = f.ajmodel_folder;
const config = JSON.parse(readFileSync(configFile), 'utf-8');
const resourcePackPath = config.resource_pack_mcmeta;
const dataPackPath = config.datapack_mcmeta;
const assetsPath = config.assets_path;
const ajmodelPath = config.ajmodel_folder;
return { resourcePackPath, dataPackPath, assetsPath, ajmodelPath };
}

0 comments on commit 6efb816

Please sign in to comment.