Jump to content

Recommended Posts

Posted

Hi,

 

I found out that the method getQuads is called 7 times when I place or remove a block with the custom IBakedModel.

So I created a simple temporary counter to see if it would work if I only returned the full list of quads once (out of 7). The rest of the time I returned an empty list.

This made the game run faster. So why does it call 7 times? And could I fix this so that the method is only called once.

 

Thanks.

 

Code:

 

RipeningRackBakedModel: https://hastebin.com/ovokanamaf.java

RipeningRackModel: https://hastebin.com/abovequlig.java

ModelHandler: https://hastebin.com/uleguwoyib.java

 

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.