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

Remove empty file return in transpile() #25

Closed MysteryBlokHed closed 3 years ago

MysteryBlokHed commented 3 years ago

The transpile function returns the transpiled contents of the .databind file, even though Databind files are now only meant to contain function definitions. The main function throws away the contents of the default file, so it doesn't need to be returned.

MysteryBlokHed commented 3 years ago

Code not in functions should also be ignored and not compiled. There's no need to compile variables, etc. when they're going to be thrown out.