mcnbt icon indicating copy to clipboard operation
mcnbt copied to clipboard

refactor: improvements to usage and browser compat

Open retrixe opened this issue 1 year ago • 0 comments

I encountered several possible improvements while using this library in a React Native application, which I've decided to upstream (read commit messages for information).

This library is missing support for the newer anonymous NBT in 1.20.2+ which I just worked around on my side like so: https://github.com/retrixe/EnderChat/blob/809ff691c0fa39e8def7e831aa3d2d3184e0950d/src/minecraft/utils.ts#L182 I don't have the energy to work on it properly myself, so proper support is not part of this PR.

Side notes:

  • Personally, I would break the API and remove fs/zlib entirely but I've left that decision up to you
  • It may be preferable to rebase and merge this PR to preserve the commit history

retrixe avatar Apr 29 '24 14:04 retrixe