Slash in filename?
njt1982 opened this issue · 3 comments
njt1982 commented
node-minecraft-assets/lib/loader.js
Line 36 in 6af1e49
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'
?
njt1982 commented
Hmm that and it should be looking in blocks
, not block
...
njt1982 commented
That pluralisation issue seems to be an issue upstream?
{
"name": "acacia_planks",
"model": "acacia_planks",
"texture": "block/acacia_planks"
},
That file is in blocks
Interestingly, the blocks_textures file defines it correctly?
njt1982 commented
So my "fix" has been to use mcAssets.textureContent[k].texture
instead of mcAssets.getImageContent(k)
(where k
is something like acacia_planks
)