Jump to content

[1.7.2][solved] Gui not recognizing specific variable of entity!


Recommended Posts

Ignore this thread.


I am sending a packet through a button click on my guiscreen, but it's not recognizing a specific Boolean variable in my entity class.

With the packet I want to change the value of that variable. And it does edit it successfully, but the GUI is not responding to the change that has been made.


But it does recognize other variables that get changed though  :\


packet class:


guicontainer class:



System output:

[GuiClayGolem] itemstack = null
[GuiClayGolem] isSetWithNBT() = false // still false, as it should be.
[PacketUpdateClayGolem] entity id = 3
[PacketUpdateClayGolem] dimension id = 0
[PacketUpdateClayGolem] set true
[EntityClayGolem] isSetWithNBT() true // variable has been set to 1 through the packet.
//after encryption
[PacketUpdateClayGolem] entity id = 3
[PacketUpdateClayGolem] dimension id = 0
[PacketUpdateClayGolem] set true
[GuiClayGolem] isSetWithNBT() = false // gui did not recognize any changes to this variable.
[GuiClayGolem] itemstack = 1xitem.bone@0 // yet the gui recognizes an itemstack in my entity's inventory slot.


Do you see any mistakes made on my end?

All comments are welcome.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.