Skip to content

Commit

Permalink
adjust automatic settings to match logic defined in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeF53 committed Feb 11, 2025
1 parent 41b5748 commit 15f885c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/image/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function getSettings(fileName: string): ProcessSettings {
}

const path = fileName.toLowerCase()
if (path.includes('/block/'))
settings.tile = { n: 'wrap', s: 'wrap', e: 'wrap', w: 'wrap' }
else if (path.includes('/painting/') || path.includes('/optifine/'))
if (path.includes('/block/') || path.includes('/optifine/'))
settings.tile = { n: 'wrap', s: 'wrap', e: 'wrap', w: 'wrap' }
else if (path.includes('/painting/'))
settings.tile = { n: 'extend', s: 'extend', e: 'extend', w: 'extend' }
else if (includesAny(path, '/model/', '/entity/'))
settings.relayer = true
else if (includesAny(path, '/font/', '/colormap/') || endsWithAny(path, 'pack.png', 'title/minecraft.png'))
Expand Down

0 comments on commit 15f885c

Please sign in to comment.