WolfyScript / WolfyUtils-Spigot

The WolfyUtilities implementation for the Spigot platform
10 stars 4 forks source link

Improved StackReference Serialization #81

Closed WolfyScript closed 4 months ago

WolfyScript commented 4 months ago

StackReferences previously serialized the original stack, because it made it possible to change the parser afterwards. However that made it almost impossible to edit items from config.

This PR changes it so that StackIdentifiers can be serialized too so that the parsed information can be stored in the config and can easily be edited.

However, it has one downside. Once the recipe has been saved, the original stack you put into the slot is lost. It now only exists in the form it was saved in, like the bukkit format, or another plugin item id. When loaded back into the GUI that item will be the new "original item".