Jump to content

Capability Resets On Rejoining World [1.16.5]


moyas1009

Recommended Posts

Hi, I'm having a problem, I implemented a capability but whenever I leave and rejoin the world it resets to the default value, I've tried copying player data from the playerclone event. Should I copy the data over on another event or what should I do so it persists?

Link to comment
Share on other sites

23 minutes ago, Toktom said:

Are u sure it is saving? If it is, I think you have a problem on reading the NBT data, you should revise that.

Yeah its definitely saving, but you were right, I checked my readNBT method and I was using the wrong setter method, It works now, thanks

 

  • Like 1
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
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.