Skip to content

fix(server): support block subfolder in pack auto-discovery and dynamic route (#55) - #56

Merged
BharathASL merged 1 commit into
mainfrom
fix/server-block-subfolder-discovery
Sep 29, 2026
Merged

BharathASL merged 1 commit into
mainfrom
fix/server-block-subfolder-discovery

Conversation

@BharathASL

Copy link
Copy Markdown
Contributor

Description

Minecraft Java resource packs place block textures in textures/block/. When pointing --textures at standard packs or vector master directories, TextureStudio previously failed to discover block textures because auto-discovery only scanned the root directory.

This change enhances discoverActivePack to scan both root textures/ and textures/block/ subdirectories, strips the optional block/ prefix in buildExternalSet, updates /textures/* routing to fall back to textures/block/ with appropriate MIME types, adds a unit test suite for directory discovery, and adds three and a test script to package.json.

Related Issues

Fixes #55

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation / Hygiene update

Checklist

  • My code follows the style of the surrounding code.
  • I have run this repository's tests locally and they pass.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated documentation / CHANGELOG as appropriate.
  • My commits follow Conventional Commits.
  • Every commit is signed off (\git commit -s), per section 5 of CONTRIBUTING.md.

…ic route (#55)

Discover textures placed in textures/block/ and route dynamic texture requests accordingly.

Signed-off-by: Bharath <bharathasl74185@gmail.com>

@ninja6-agent ninja6-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found.

@BharathASL
BharathASL added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit cd8da77 Sep 29, 2026
4 checks passed
@BharathASL
BharathASL deleted the fix/server-block-subfolder-discovery branch September 29, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(server): support block subfolder in pack auto-discovery and dynamic route

1 participant