Open Zeranny opened 3 days ago
How is it being registered to the Mask factory?
How is it being registered to the Mask factory?
worldEdit.getWorldEdit().getMaskFactory().register(new NearMaskParser(worldEdit.getWorldEdit(), "#near"));
@Brennian does Arceon do anything different?
I can confirm that
Server Implementation
Paper
Server Version
1.20.5/6
Describe the bug
Following the updates in https://github.com/IntellectualSites/FastAsyncWorldEdit/pull/2786, usage of Mask/Pattern factory parseFromInput() within a RichParser paser does not work and causes the surrounding parser to error.
I see this in my own new plugin, and it has also been reported in Arceon @Brennian I have added a small example code snippet to show what I mean. The error is thrown on the inner Mask parse.
Note that my debugpaste is on Version 2.11.1-SNAPSHOT as I was testing adding debug statements to find the point of failure, I have replicated in on 2.11.0 and reports from those using Arceon are on 2.11.0 Also tested on MC versions 1.20.4, 1.20.5/6, and 1.21.0 and the issue persists
Issue not present on 2.9.2 or 2.10.0
To Reproduce
Using the FAWE API, call Mask/Pattern factory's parseFromInput() inside a RichParser
Expected behaviour
Prior to this update there was no issue using masks/patterns within a RichParser. Looking to restore that functionality.
Screenshots / Videos
Error log (if applicable)
No response
Fawe Debugpaste
https://athion.net/ISPaster/paste/view/91bb2d0911d741f2b58c459d89e2acf1
Fawe Version
2.11.1-SNAPSHOT
Checklist
Anything else?