Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beside Mask Shorthand Parsing Error #2622

Closed
2 tasks done
Zeranny opened this issue Mar 16, 2024 · 2 comments · Fixed by #2625
Closed
2 tasks done

Beside Mask Shorthand Parsing Error #2622

Zeranny opened this issue Mar 16, 2024 · 2 comments · Fixed by #2625
Labels
Approved Added if an issue has been approved by a maintainer Bug Something isn't working

Comments

@Zeranny
Copy link
Contributor

Zeranny commented Mar 16, 2024

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

@Zeranny Zeranny added the Requires Testing This is a new issue which needs to be approved before labeled with "bug" label Mar 16, 2024
@Zeranny
Copy link
Contributor Author

Zeranny commented Mar 16, 2024

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

@dordsor21
Copy link
Member

dordsor21 commented Mar 16, 2024

I cannot replicate this at all

Ah I see, it errors but still works :)

@OneLiteFeather OneLiteFeather added Bug Something isn't working Approved Added if an issue has been approved by a maintainer and removed Requires Testing This is a new issue which needs to be approved before labeled with "bug" labels Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Added if an issue has been approved by a maintainer Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants