So, I have a GUI which should access a certain Tile Entity's method. But when I access the Tile Entity and its capability from the Gui, it doesn't save. I suspect that it only changes the value on the client side. I've heard about syncing, but I have no idea how to do that. I am pretty inexperienced in coding, which you can perhaps see in my coding style. How do I fix this?
Here's my code:
Thank you in advance!