9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-29 11:59:17 +00:00

refactor: remove unused check

This commit is contained in:
MC_XiaoHei
2025-08-24 15:44:17 +08:00
parent a994f8bfc8
commit cfafc2638b

View File

@@ -44,11 +44,7 @@ public abstract class CommandNode {
}
protected ArgumentBuilder<CommandSourceStack, ?> compile() {
ArgumentBuilder<CommandSourceStack, ?> builder = compileBase();
if (isMethodOverridden("requires", CommandNode.class)) {
builder = builder.requires(this::requires);
}
ArgumentBuilder<CommandSourceStack, ?> builder = compileBase().requires(this::requires);
for (CommandNode child : children) {
builder = builder.then(child.compile());