FastAsyncWorldEdit

FastAsyncWorldEdit

245k Downloads

BlockVectorSet#remove not working

Anarchick opened this issue ยท 0 comments

commented

Server Implementation

Paper

Server Version

1.20.4

Describe the bug

The method BlockVectorSet#remove does not remove the BlockVector3 from his iterator

To Reproduce

        BlockVectorSet set = new BlockVectorSet();

        for (BlockVector3 blockVector3 : test) {
            set.add(blockVector3);

            if (set.contains(blockVector3)) {
                set.remove(blockVector3);
                System.out.println("set.size() = " + set.size()); // increament each times
            }
        }

Expected behaviour

With this test code, the size should be 0 and not increament

Screenshots / Videos

No response

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/97352a2eb0a841beb7207a74a501d5e5

Fawe Version

FastAsyncWorldEdit version 2.11.1-SNAPSHOT-854;d2033d4

Checklist

Anything else?

No response