I made a container with a gui in minecraft 1.16.1 and it mostly works. However when I try to take an item out, it takes it out for a bit only for it to appear back in the container. Any idea on why this is?
Here is my container class
https://pastebin.com/HLiSqCFf
Here is my gui class
https://pastebin.com/eKH39ZMr
Here is my tile entity class
https://pastebin.com/A3kSM8wF
Here is my block class
https://pastebin.com/ExmcFFXf