Skip to content

Commit 91fff7e

Browse files
committed
Fix non-valid executables sometimes causing a false match
1 parent 8ba151f commit 91fff7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ repositories {
77
}
88

99
dependencies {
10-
implementation("de.bluecolored.bluecommands:bluecommands-core:1.1.3")
11-
implementation("de.bluecolored.bluecommands:bluecommands-brigadier:1.1.3") // Optional
10+
implementation("de.bluecolored:bluecommands-core:1.1.4")
11+
implementation("de.bluecolored:bluecommands-brigadier:1.1.4") // Optional
1212
}
1313
```
1414

bluecommands-core/src/main/java/de/bluecolored/bluecommands/Command.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void parse(ParseData<C, T> data) {
7373

7474
InputReader input = data.getInput();
7575
int inputPosition = input.getPosition();
76-
if (executable != null) {
76+
if (executable != null && executable.isValid(data.getContext())) {
7777
if (input.peek() == -1)
7878
data.getResult().addMatch(new ParseMatch<>(executable, data.getContext(), data.getArguments(), data.getCommandStack()));
7979
else

0 commit comments

Comments
 (0)