Hey,
So im working on a mod wich adds a new machine wich uses Buildcraft Energy to fill buckets from liquids in its Tank. The problem is when I try to read the liquidStack from the liquidTank in the GUI it always returns null. I just wanted to display how much liquid and wich type of its in my machine is.
The (in my oppinion) relevant Code:
I just dont get it why it works for me.
Thank you for trying to read, understand and help me with my code!
EDIT:
It works now... i had to load the entity from the server and not from the client world. So the working GuiHander :