Skip to content

Commit

Permalink
Accounting for organization of cries
Browse files Browse the repository at this point in the history
  • Loading branch information
KirbyRider1337 authored Jan 24, 2024
1 parent 4c0bdb5 commit c93728c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-tools/build-indexes
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ function buildModSprites() {
const subFolders = ['anifront', 'anifront-shiny','aniback','aniback-shiny','front', 'front-shiny', 'back', 'back-shiny', 'icons', 'types', 'items', 'cries'];
for (const j in subFolders) {
const subF = subFolders[j];
const spritePath = 'caches/DH2/data/mods/' + modName + '/sprites/' + subF;
const spritePath = 'caches/DH2/data/mods/' + modName + (j === 'cries' ? '/' : '/sprites/') + subF;
const spriteDir = fs.existsSync(spritePath) ? fs.readdirSync(spritePath) : '';
for (const sprI in spriteDir) {
let id = spriteDir[sprI];
Expand Down

0 comments on commit c93728c

Please sign in to comment.