Jump to content

Recommended Posts

Posted

1. My system.out.println(butterTime) always begins counting from 0 when I join.

2. Forgot that, placed the overrides above the methods, but it definitely overrides them.

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

Posted

Ah ok. Thanks for letting me know, included my mod id.

Also overrided hasTileEntity and createTileEntity, not using BLockContainer anymore.

Let's see...

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

Posted

i had a similar issue with tile entity rotations not being saved and the block just pointing north on load. i made some changes based on an example i was able to find. primarily adding a getter and setter, rather than calling the variable directly and checking if the tagcompound.hasKey before setting it in the readfromnbt.

 

 

        if(par1.hasKey("direction"))

        {

        this.direction = par1.getInteger("direction");

        }

 

 

I don't know why either would make a difference, but one of them, at least, solved the issue.

Posted

In the past I know it was a good practice to use worldObj.markBlockForUpdate() as well as markDirty(). Not sure if that would make a difference. Also, you could be having a client/server desync issue, as from what I can tell, you're not syncing any fields.

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Posted

Thanks for the help. But oh well, it works suddenly, I didn't change anything. Only restarted my pc.

Those weird programs...

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

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.