-
-
Notifications
You must be signed in to change notification settings - Fork 312
fix: add a WrapperChunk to allow "Invalidating" a ChunkHolder on submission #3354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dordsor21
commented
Oct 26, 2025
- fixes issues where edits were not fully undone
- invalidate a ChunkHolder when submitting, via a "wrapper" to allow filters to be "aware"/forced to use a new ChunkHolder when it is submitted
- this also allows us to not submit a ChunkHolder in IQueueExtent#filter if the wrapper does not holder it anymore (i.e. it was forcibly submitted, and no more work was done)
|
Looks like it works fine + nothing new comes up in profiler Would also be good if others could test and try to reproduce the issue with history (to see if it's "definitely fixed") |
SirYwell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of all the mutability in general, but I guess there currently isn't really a better way without rewriting larger parts of the whole plugin.
...t-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java
Outdated
Show resolved
Hide resolved
...t-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java
Show resolved
Hide resolved
...t-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java
Outdated
Show resolved
Hide resolved
...-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/WrapperChunk.java
Outdated
Show resolved
Hide resolved
...-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/WrapperChunk.java
Outdated
Show resolved
Hide resolved
worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/IQueueChunk.java
Outdated
Show resolved
Hide resolved
worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/IQueueExtent.java
Outdated
Show resolved
Hide resolved
|
@SirYwell poke |
76a3682 to
bcd35ff
Compare
8b4330c to
147c544
Compare
…ission - fixes issues where edits were not fully undone - invalidate a ChunkHolder when submitting, via a "wrapper" to allow filters to be "aware"/forced to use a new ChunkHolder when it is submitted - this also allows us to *not* submit a ChunkHolder in IQueueExtent#filter if the wrapper does not holder it anymore (i.e. it was forcibly submitted, and no more work was done)
147c544 to
6157c98
Compare
NotMyFault
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ingame testing but looks reasonable