Skip to content

Commit

Permalink
Removed unnecessary functions in ajexport
Browse files Browse the repository at this point in the history
  • Loading branch information
aidant19 committed Jan 10, 2024
1 parent 573d8de commit a942895
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions scripts/ajexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,6 @@ const exportNextFile = () => {
};
exportNextFile();

/*
function getModelPackPaths(modelContent) {
var f = JSON.parse(modelContent);
var resourcePackPath = f.animated_java.settings.resource_pack_mcmeta;
var dataPackPath =
f.animated_java.exporter_settings['animated_java:datapack_exporter']
.datapack_mcmeta;
return [resourcePackPath, dataPackPath];
}
*/

/*
function writeModelPackPaths(modelContent, modelFile, paths) {
var f = JSON.parse(modelContent);
f.animated_java.settings.resource_pack_mcmeta = paths[0];
f.animated_java.exporter_settings[
'animated_java:datapack_exporter'
].datapack_mcmeta = paths[1];
fs.writeFileSync(modelFile, JSON.stringify(f));
}
*/

function injectModelPackPaths(modelContent, paths) {
let f = JSON.parse(modelContent);
f.animated_java.settings.resource_pack_mcmeta = paths[0];
Expand Down

0 comments on commit a942895

Please sign in to comment.