13
0
geforkt von Mirrors/Velocity

Actually fix accidental breaking change not allowing aliases to be overridden.

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-07-30 06:06:37 -04:00
Ursprung 7f1ee77a69
Commit e3a95b4783

Datei anzeigen

@ -112,6 +112,11 @@ public class VelocityCommandManager implements CommandManager {
dispatcher.getRoot().addChild(node);
while (aliasIterator.hasNext()) {
String otherAlias = aliasIterator.next();
CommandNode<CommandSource> existingNode = dispatcher.getRoot()
.getChild(alias.toLowerCase(Locale.ENGLISH));
if (existingNode != null) {
dispatcher.getRoot().getChildren().remove(existingNode);
}
dispatcher.getRoot().addChild(BrigadierUtils.buildRedirect(otherAlias, node));
}
}