[BUG] Duplicate file names (even in unique folders) will try searching for only one of the duplicates
InQuognito opened this issue · 1 comments
InQuognito commented
Describe the bug
As an example, let's say you have two files folder1/file
and folder2/file
. Blockbench renders them as file
and file
, and Animated Java searches for the name file
, so every time it will only find and return the first result.
To Reproduce
Steps to reproduce the behavior:
- Created an Animated Java Blueprint, put in a cube and two textures named the same.
- Create a variant and attempt to select the second texture with the same name. It appears in the dropdown but renders as the first texture (potentially arbitrary selection, but doubtful)
Expected behavior
It should render the file name conflict as VSCode does, where instead of rendering in the list as file
, it should render as folder1/file
.
Desktop
- OS: Windows 11
- AJ Version 1.4.0
SnaveSutit commented
Hmm, I can't figure out why this is happening. AJ always uses UUID to select textures, not name. So somewhere else down the line something is going funky.