Jump to content

Recommended Posts

Posted

Hi everybody, I am making a gui with a progress bar (arrow actualy), but for some reason it doesn't update properly.  I'm not sending any packets, which might be part of the problem, but I don't know how to fix it.

 

Code:

 

  Reveal hidden contents

 

Posted

TileEntity (a little messy):

 

  Reveal hidden contents

 

Container:

 

  Reveal hidden contents
Posted

Do I need to addCraftingToCrafters when I open the gui for a player?  I did everything from the furnace container, but it sill won't work.

 

Container:

 

  Reveal hidden contents
Posted

Better?

 

Container:

 

  Reveal hidden contents

 

 

TileEntity:

 

  Reveal hidden contents

 

 

Also, if I put print statements in the method, they print the correct value, but if I put the same statements in the gui, but using the return value of the method, they print 0 (wrong), even though the method prints (and returns) the correct value.

 

Posted
  On 3/11/2014 at 3:41 AM, AskHow1248 said:

Sorry, stupid mistake.  It still doesn't work though (I cast both to double).

 

par2 / 100D is sufficient.

 

(int / double = double)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

I figured it out.  In the updateEntity() for my tile entity, I had a if(!worldObj.isRemote) statement, which meant it didn't get updated on the client side.  Thank you everybody how helped.

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.