Jump to content

9903286

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new! FOREVER!

9903286's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hello! So I've got this problem with my inventory not updating properly for the client that is moving stuff around inside it. All clients that aren't moving anything in the inventory gets the right things displayed, only the client putting stuff into the inventory has this. Example: I've got 1 cobblestone here: https://dl.dropboxusercontent.com/u/22001728/Photos/inventory_before.png I put it into the inventory (doesn't matter which slot): https://dl.dropboxusercontent.com/u/22001728/Photos/inventory_middle.png And then when i try to take it out: https://dl.dropboxusercontent.com/u/22001728/Photos/inventory_after.png This happens for all the slots in the inventory. Here's my relevant classes (i think, ask for it if i missed one): TileEntityWindmill.java: http://pastebin.com/LANQhTNw GuiWindmill.java: http://pastebin.com/V7BYmgfm ContainerWindmill.java: http://pastebin.com/Ha9Wpv1z GuiHandler: http://pastebin.com/pLv2nbMx I can't think of anything that would do this besides the inventory not updating, but I've looked through a couple of tutorials and examples, and from what i can see, it's all right. EDIT: After 2 days i decided to redo one of the tutorials again, but still the same result. The tutorial i followed was by the way this one: http://www.minecraftforge.net/wiki/Containers_and_GUIs
  2. I added the onDataPacket method to my class and now it works! Thanks for you help!
  3. So i've recently started modding forge, and i've created a couple of blocks and items, so i thought i would move on to TileEntities. In this case i wanted to create a windmill that generates energy while in the world. I've succeeded in doing so but there is a problem, when i quit the game and then login again, the server has the correct amount of energy in the entity, but the client does not. I've looked around for a while both on this forum and on the googlez, but i haven't found an answer to the problem yet. (I've been looking for about a day) The one thing i found was the write- and readFromNBT methods, but that's what made the server keep the information. I'm registering my entity and block in the main class: http://pastebin.com/TMNJzvGD I'm registering the TileEntityRender in my ClientProxy by doing this: ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWindmill.class, new TileEntityRenderWindmill("textures/model/windmill.png")); My windmill block class looks like this: http://pastebin.com/ePs6D52K And my TileEntityWindmill looks like this: http://pastebin.com/NKdPtb9Z Tell me if you need more information.
×
×
  • Create New...

Important Information

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