Posted March 5, 201312 yr 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
March 5, 201312 yr send a packet to the player when gui is opend. the nbt saves only on the servers side so when you quit minecraft the client side varaibles reset. http://www.minecraftforum.net/topic/1937703-162smpforge-pet-mastery-hatch-level-battle/
March 5, 201312 yr 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.
March 5, 201312 yr Author somehow when I looked at the code again, I completely understood it. It worked perfectly. thank you.
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.