13
0
geforkt von Mirrors/Velocity

Resolve (most) issues flagged by @hugmanrique in 65e1b7be87

This still needs to be configurable, but this is a first step towards shifting towards a more intuitive behavior.
Dieser Commit ist enthalten in:
Andrew Steinborn 2020-07-29 05:51:40 -04:00
Ursprung 89f98ce57d
Commit b6a60b610a

Datei anzeigen

@ -102,11 +102,9 @@ public class VelocityCommandManager implements CommandManager {
if (!(command instanceof BrigadierCommand)) { if (!(command instanceof BrigadierCommand)) {
if (!meta.getHints().isEmpty()) { if (!meta.getHints().isEmpty()) {
// If the user specified a hint, then allow the hint to take precedence over the catch-all // If the user specified a hint, then add the hints to the command node directly.
// argument.
node.getChildren().clear();
for (CommandNode<CommandSource> hint : meta.getHints()) { for (CommandNode<CommandSource> hint : meta.getHints()) {
node.addChild(BrigadierUtils.wrapForHinting(hint, node.getCommand())); node.addChild(hint);
} }
} }
} }