PrismarineJS / PrismarineJS/node-minecraft-assets

Slash in filename?

Open
#6 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
22
Forks
20
Avg merge
50m
Merged PRs (30d)
2

Description

https://github.com/PrismarineJS/node-minecraft-assets/blob/6af1e492393890dca6ddc7885930d9c83f55bba6/lib/loader.js#L36

I'm getting this error:
Error: ENOENT: no such file or directory, open '/Users/nthompson/Sites/minecraft-browser/node_modules/minecraft-assets/minecraft-assets/data/1.16.1/block/acacia_planks/.png'

Should it be texture + '.png' ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at lib/loader.js line 36 and inspect how the texture filename is assembled. Reproduce the reported ENOENT path for acacia_planks, then verify the corrected path against the asset layout. Done means the loader opens the expected .png file without an extra slash.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.