When using commands such as //set with a cuboid selection in a chunk that also has a border of a polygonal worldguard region the operation will not edit blocks and throw a NullPointerException in the console.
To Reproduce
Create a polygonal Worldguard region. It must have at least 1 whole chunk in the region.
Add yourself as a member of that region with sufficient permissions to use FAWE commands in it.
Create a cuboid selection that includes at least part of the whole chunk and another part in a chunk that includes a region border.
Run //set stone, it will now only set the stone in the chunk where no border exists. A NullPointerException is caught in the console. (The exception only occurs when a the selection is both inside and outside the region)
Expected behaviour
The command should execute in the complete selected area that is within the bounds of the polygonal region instead of just being in the chunks without the border.
Screenshots / Videos
Description:
The region boundary is indicated by the lime concrete blocks, the selection covers parts of 2 chunks, 1 of which does not include a region boundary, this is the chunk where the operation worked. The number of effected blocks appears to be much higher than the selected area (indicated by the orange concrete).
Server Implementation
Paper
Server Version
1.18.2
Describe the bug
When using commands such as //set with a cuboid selection in a chunk that also has a border of a polygonal worldguard region the operation will not edit blocks and throw a NullPointerException in the console.
To Reproduce
Expected behaviour
The command should execute in the complete selected area that is within the bounds of the polygonal region instead of just being in the chunks without the border.
Screenshots / Videos
Description: The region boundary is indicated by the lime concrete blocks, the selection covers parts of 2 chunks, 1 of which does not include a region boundary, this is the chunk where the operation worked. The number of effected blocks appears to be much higher than the selected area (indicated by the orange concrete).
Error log (if applicable)
https://gist.github.com/LM-Wolfert/efd5c92802c1c77d664d1bedf73fb969
Fawe Debugpaste
https://athion.net/ISPaster/paste/view/ccec137a5a274acba855d483c1a76c35
Fawe Version
FastAsyncWorldEdit-Bukkit-2.6.2-SNAPSHOT-445.jar
Checklist
Anything else?
No response