Entity Storage Fixes#838
Merged
Merged
Conversation
Contributor
|
@JustAHuman-xD Just to confirm, have you tested that the new changes work? The old implementation was in the state it was because the paper API was rather inconsistent wrt death/unload events but it has been a while since then, is that no longer the case as far as you can tell? |
Contributor
Author
Yeah I was using this on my branch with the RedstoneLink which was using the ghost block entities. |
LordIdra
approved these changes
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently EntityStorage saves the entities on entity removal, however that behavior is undefined and there is no guarantee that those changes will be persisted, I've changed it to entity unload instead. I also renamed the RebarEntityDeathEvent to be RebarEntityRemoveEvent as the name was misleading, death is not the same as removal, removal can be caused by death, but it isn't implicitly bound to it.
Ive also updated the death handler to listen to the real death event, not ours
For those reasons the new handler i added for actually handling entity removal, also uses the real event, not ours