Skip to content

Commit ae9cecd

Browse files
committed
Fix predicate tests breaking <1.20.5 tests
1 parent a6c52f7 commit ae9cecd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-test/commandapi-bukkit-test-tests/src/test/java/dev/jorel/commandapi/test/arguments/ArgumentItemStackPredicateTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ void suggestionTestWithItemStackPredicateArgument() {
105105
// Identical to the ItemStackArgument tests, except ItemStackPredicates have a slightly
106106
// different list of possible values because it can also accept * and tags (starting with #)
107107
List<String> itemPredicateNames = new ArrayList<>(MockPlatform.getInstance().getAllItemNames());
108-
itemPredicateNames.add(0, "#");
109-
itemPredicateNames.add(1, "*");
108+
if (version.greaterThanOrEqualTo(MCVersion.V1_20_5)) {
109+
itemPredicateNames.add(0, "#");
110+
itemPredicateNames.add(1, "*");
111+
}
110112

111113
// /test
112114
// All items should be suggested

0 commit comments

Comments
 (0)