-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Super pickaxe mode toggling does not work with single slash #1547
Comments
I'm testing Can you outline again what exactly was not working please? |
Alright, just found out how to "work around" this issue. I don't know if that is intended, but it does work by using a single slash. |
Server Implementation
Paper
Server Version
1.18.1
Describe the bug
Toggling the super pickaxe mode does not work - providing any other argument than
true
orfalse
as a parameter to//superpickaxe
results in aInvocationTargetException
.The same happens when providing a range with e.g.
//superpickaxe area 5
To Reproduce
//superpickaxe area 5
,//superpickaxe single
, ... (anything that is not a boolean -//superpickaxe true
will work)Expected behaviour
It is expected that the mode of the super pickaxe toggles.
Screenshots / Videos
No response
Error log (if applicable)
No response
Fawe Debugpaste
https://athion.net/ISPaster/paste/view/eeb37f10618747c19ceef32f9c21ab8e
Fawe Version
2.0.1-SNAPSHOT-69;d3696f9
Checklist
Anything else?
After quick investigation (disclaimer: never looked at the FAWE codebase before) it seems to me that the ToolUtilsCommands class that defines
//superpickaxe
FastAsyncWorldEdit/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java
Lines 182 to 207 in e8043c7
more or less overrides the subcommands of SuperPickaxeCommands, as no matter what arguments you provide it always asks for the
superPickaxe
parameter, the toggle state boolean of the util command. As I have no idea of how the command system is implemented, I can't provide further details.The text was updated successfully, but these errors were encountered: