MysteryBlokHed / databind

Expand the functionality of Minecraft Datapacks.
https://databind.rtfd.io/en/stable
GNU General Public License v3.0
4 stars 0 forks source link

Allow Databind to work with existing tags #102

Closed MysteryBlokHed closed 3 years ago

MysteryBlokHed commented 3 years ago

Functions tagged in Databind using the tag keyword are added to a HashMap that's turned into tag files at the end of compilation. The problem with this is that any function tags that already contained things will be overwritten. Since the project already uses serde and serde_json, it wouldn't be hard to check if each tag .json file already exists and, if it does, add it to the TagFile struct created at the end.

I've marked this issue as a bug because Databind is meant to be able to be implemented alongside normal mcfunctions, or to be gradually integrated into a project.