-
-
Notifications
You must be signed in to change notification settings - Fork 312
Fix //hollow not behaving correctly #3142
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
worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java
Outdated
Show resolved
Hide resolved
dordsor21
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.
Assuming this still works (don't see why not), lgtm, thanks!
|
Oh hold up, there's a specific case for which it doesn't work |
by yet again turning a mutable bv3 into an immutable one
|
The fix worked. The case I was just talking about was something separate. |
Make it not immutable after adding, this current way you're creating extra BV3s |
|
Like this? |
Yeah I don't see why it would need to be immutable here - the queue does not actually store the BV3 and stores as an index in a long array |
|
You added the comments in the wrong place - where you added is already covered. Should be around 3301 and 3316 |
This reverts commit 9173f15.
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.
Looks fine. I wonder if we should change MutableBV3 to create an immutable instance on add and instead have specific mutating variants instead. But that's out of scope for now.
Mm probably, but I think that should be a forcibly breaking change in v3; relocating/renaming the class e.g. |


Overview
Fixes #3083
Description
Turning the mutable position vectors of the region iterator to immutable ones, to allow the original implementation of the hollowOutRegion to function as expected.
Submitter Checklist
@since TODO.