Jump to content

[1.16.2] Custom Entity Despawning on Reload


Recommended Posts

I have a custom basic entity that happens to despawn whenever I reload the save. It's not a living entity. Afaik, it wasn't doing this before, but I don't know when it started happening. Does anyone have any idea of where this issue could be originating from?



Here is a link to the entity class. The rest of the repo is also there, if necessary.



Link to comment
Share on other sites

3 hours ago, ChampionAsh5357 said:

You removed the super calls from the read and write methods.

Hmm, that's odd, cus I don't think they really have much of a super. There's the base read/write nbt for entity and then there is the read/write additional nbt, which I'm using. Last I checked, there isn't really a body to the super of them. Could be wrong, but I can't check right now.


EDIT: Though I do believe that there is an issue with my read/write additional nbt methods. It seems that it is not despawning on reload, but instead, failing to save/load. I commented out the body of my read/write additional nbt methods and it saves/loads just fine. No errors that I've seen though.

Edited by BlueMond
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.

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.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.