Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.15] ItemStack's capability data is not being synced with the client.


Awsome
 Share

Recommended Posts

One of the items in my mod is supposed to be syncing it's NBT data to the client using ItemStack::getShareTag and ItemStack::readShareTag.

I've tried putting breakpoints in these methods, but they don't seem to be getting called at all.

Is something wrong with my installation?

 

My forge version is 1.15.2-31.2.31, in case that helps.

 

Any help would be appreciated.

Link to comment
Share on other sites

Ok, so I think I'll go into a little bit more detail:

The item has a custom capability that stores the ItemStack's temperature. When the stack is placed into the output slot of one of the tile entities in my mod, it is supposed to keep the temperature of the stack the same as the tile entity. However, it only does this for the stack on the server side (I've checked with eclipse's debugger).

 

Here's the code for the tile entity, in case that helps:

https://github.com/Awsomekeldeo/RealisTech/blob/f45e7b906509c6171c3bb71384f8c64c2356117c/src/main/java/awsome/realistech/tileentity/CrucibleTileEntity.java

Link to comment
Share on other sites

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
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.