Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Dupe hopper in 1.20.2 textureContent will be replaced by one. #32

Open
EnchStudio opened this issue Jul 23, 2024 · 1 comment

Comments

@EnchStudio
Copy link

i wanna get hopper item (like it in hotbar), but returned a hopper outside texture. because of textureContent.json have 2 name: hopper/

@EnchStudio
Copy link
Author

i tried use this indexer.js

module.exports.buildIndexFromArray = function (array, fieldToIndex) {
  if (array === undefined) { return undefined }
  return array.reduce(function (index, element) {
    if (!index.hasOwnProperty(element[fieldToIndex])) {
      index[element[fieldToIndex]] = element
    }
    return index
  }, {})
}

and work good for me

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

No branches or pull requests

1 participant