FastAsyncWorldEdit

FastAsyncWorldEdit

152k Downloads

BlockMaskBuilder#addRegex does not work correctly

dordsor21 opened this issue ยท 0 comments

commented

Server Implementation

Paper

Server Version

1.19.4

Describe the bug

BlockMaskBuilder assumes an initial stateId (containing the BlockState info) of zero when recursively clearing blockstates from the mask. This is incorrect and thus either only the first property, or properties added until a non-"zero" property value will correctly mask. Some sort of fuzzy state could be used per property, and then combined at the end.

This will only cause actual issues if the user is attempting to use regex block matching, otherwise, it will fall back to working methods.

To Reproduce

Any mask using properties

Expected behaviour

It works

Screenshots / Videos

No response

Error log (if applicable)

No response

Fawe Debugpaste

No need

Fawe Version

All

Checklist

Anything else?

No response