We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c36c11 commit 106b4fbCopy full SHA for 106b4fb
common/src/main/java/revxrsal/commands/node/parser/Execution.java
@@ -243,7 +243,15 @@ && isSiblingOf(command)
243
}
244
245
@Override public boolean isChildOf(@NotNull ExecutableCommand<A> command) {
246
- return path().startsWith(command.path());
+ if (size() <= command.size())
247
+ return false;
248
+ for (int i = 0; i < command.size(); i++) {
249
+ CommandNode<A> ourNode = nodes.get(i);
250
+ CommandNode<A> otherNode = command.nodes().get(i);
251
+ if (!otherNode.representation().equals(ourNode.representation()))
252
253
+ }
254
+ return true;
255
256
257
@Override public boolean containsFlags() {
0 commit comments