Skip to content

Commit b5f4a7f

Browse files
committed
feat: re-add static argument validation patch
1 parent 277b0dc commit b5f4a7f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: 0utplay <[email protected]>
3+
Date: Thu, 5 Sep 2024 17:48:02 +0200
4+
Subject: [PATCH] disable static argument suggestion validation
5+
6+
7+
diff --git a/cloud-core/src/main/java/org/incendo/cloud/CommandTree.java b/cloud-core/src/main/java/org/incendo/cloud/CommandTree.java
8+
index c18f80845f7bc2d756d195f7906681667b5a0831..781d615e4f1e0a2513704d26c9cb8d67eafdd619 100644
9+
--- a/cloud-core/src/main/java/org/incendo/cloud/CommandTree.java
10+
+++ b/cloud-core/src/main/java/org/incendo/cloud/CommandTree.java
11+
@@ -756,7 +756,7 @@ public final class CommandTree<C> {
12+
final String string = input.peekString();
13+
for (Suggestion suggestion : suggestionsToAdd) {
14+
if (suggestion.suggestion().equals(string) || !suggestion.suggestion().startsWith(string)) {
15+
- continue;
16+
+ // continue; // CloudNet - disable suggestion pre-validation
17+
}
18+
context.addSuggestion(suggestion);
19+
}

0 commit comments

Comments
 (0)