I am trying to add functionality and crafting to the fletching table; however, when I close the GUI, it won't save the inventory. I've looked at the fabric documentation for screen handlers and block entities, and I still can't figure it out what I need to do other than the readNbt and writeNbt methods.
https://github.com/DontNeg/improved-fletching/tree/main/src/main/java/dontneg/improvedfletching