From 6b67a86876182800b244ca0eee985f8879dc30a4 Mon Sep 17 00:00:00 2001 From: aidant19 Date: Wed, 10 Jan 2024 19:00:41 -0500 Subject: [PATCH] f -> model --- scripts/ajexport.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/ajexport.js b/scripts/ajexport.js index 7b6aee476..4cca63439 100644 --- a/scripts/ajexport.js +++ b/scripts/ajexport.js @@ -44,12 +44,12 @@ const exportNextFile = () => { exportNextFile(); function injectModelPackPaths(modelContent, paths) { - const f = JSON.parse(modelContent); - f.animated_java.settings.resource_pack_mcmeta = paths.resourcePackPath; - f.animated_java.exporter_settings[ + const model = JSON.parse(modelContent); + model.animated_java.settings.resource_pack_mcmeta = paths.resourcePackPath; + model.animated_java.exporter_settings[ 'animated_java:datapack_exporter' ].datapack_mcmeta = paths.dataPackPath; - for (const texture of f.textures) { + for (const texture of model.textures) { texture.path = texture.path.replaceAll('\\', '/'); if (texture.path.includes('.minecraft')) { const x = texture.path.split('assets')[1]; @@ -62,7 +62,7 @@ function injectModelPackPaths(modelContent, paths) { texture.path = newPath; } } - return JSON.stringify(f); + return JSON.stringify(model); } function getConfigPaths(configFile) {