FastAsyncWorldEdit

FastAsyncWorldEdit

152k Downloads

Beside Mask Shorthand Parsing Error

Zeranny opened this issue ยท 2 comments

commented

Server Implementation

Paper

Server Version

1.20.4

Describe the bug

When you use the shorthand | for the #beside mask, the parser produces an error

[00:39:31 WARN]: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
[00:39:31 WARN]:        at FastAsyncWorldEdit-Bukkit-2.9.1.jar//com.sk89q.worldedit.extension.factory.parser.DefaultBlockParser.parseLogic(DefaultBlockParser.java:343)

To Reproduce

  1. Type //replace |air stone
  2. Index 0 out of bounds for length 0 error will appear in console when parsing for suggestions

Expected behaviour

No error (Identical behaviour to #beside)

Screenshots / Videos

No response

Error log (if applicable)

https://paste.gg/p/anonymous/20e3b35c3d434f84a8bce76c937209dc

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/56589f18ad3646328857ae6aa4e975db

Fawe Version

FastAsyncWorldEdit-Bukkit-2.9.1

Checklist

Anything else?

No response

commented

I believe I can fix this in the DefaultBlockParser - will raise a PR if the fix works

commented

I cannot replicate this at all

Ah I see, it errors but still works :)