Fix flag nodes not having their parent set
This commit is contained in:
parent
569077ce36
commit
0f4ad5d16a
1 changed files with 3 additions and 1 deletions
|
|
@ -758,7 +758,9 @@ public final class CommandTree<C> {
|
||||||
node = tempNode;
|
node = tempNode;
|
||||||
|
|
||||||
if (i >= flagStartIdx) {
|
if (i >= flagStartIdx) {
|
||||||
node = node.addChild(flags);
|
tempNode = node.addChild(flags);
|
||||||
|
tempNode.setParent(node);
|
||||||
|
node = tempNode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue