diff --git a/gradle.properties b/gradle.properties index e322d45..7f4fd0f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,13 +4,13 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.21-pre2 +minecraft_version=1.21 loader_version=0.15.11 # Mod Properties -mod_version=1.8.0-beta1 +mod_version=1.8.0-beta2 maven_group=io.github.misode archives_base_name=packtest # Dependencies -fabric_version=0.99.4+1.21 +fabric_version=0.100.1+1.21 diff --git a/src/main/java/io/github/misode/packtest/commands/AssertCommand.java b/src/main/java/io/github/misode/packtest/commands/AssertCommand.java index 488bce9..61c721b 100644 --- a/src/main/java/io/github/misode/packtest/commands/AssertCommand.java +++ b/src/main/java/io/github/misode/packtest/commands/AssertCommand.java @@ -332,8 +332,8 @@ private static AssertResult assertChat(CommandContext ctx, P List matching = chatListener.filter(m -> filter.test(m) && predicate.test(m.content())); List all = matching.isEmpty() ? chatListener.filter(filter) : matching; String got = all.isEmpty() ? "no messages" - : all.size() == 1 ? all.get(0) - : all.get(all.size() - 1) + " and " + (all.size() - 1) + " more"; + : all.size() == 1 ? all.getFirst() + : all.getLast() + " and " + (all.size() - 1) + " more"; return result(!matching.isEmpty(), pattern + " in chat", got); } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 920b3ea..76d00b3 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -24,7 +24,7 @@ "accessWidener": "packtest.accesswidener", "depends": { "fabricloader": ">=0.15.10", - "minecraft": ">=1.20.5", + "minecraft": ">=1.21", "java": ">=21", "fabric-api": "*" }