Jump to content

[SOLVED] GUI not displaying accurate data


endershadow

Recommended Posts

When I close out of minecraft and re-open it, the gui thinks the tileentity reset the number, but I found through testing that the value didn't actually reset and it was just the gui. please help.

https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/lyoko/CodeLyoko.java

https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/lyoko/client/GuiSuperCalc.java

https://github.com/code-lyoko-modding/CodeLyokoMod/blob/master/lyoko/entities/TileEntitySuperCalc.java

Link to comment
Share on other sites

in your GUI actionPerformed method: I would move packet code to a helper class, but the main problem is, GUI is opened only on a client-side so it's pointless to have there "if (side == Side.SERVER)". I can't see where you are setting newly selected value from GUI to TE on a client. You don't synchronize TEs, it's probably responsible for the problem you're describing. But I might overlooked something, there's tons of code...

 

EDIT: ehm, looking at posts, I already write you how to synchronize TE O_0.

http://www.minecraftforge.net/forum/index.php/topic,6261.msg33322.html#msg33322

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

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.

Guest
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.

Announcements



×
×
  • Create New...

Important Information

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