From 6a6dfa19854fc8bd8363dfbe67ca2056b28e20a2 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Fri, 31 May 2024 14:43:29 +0100 Subject: [PATCH] 1.21-pre2 --- .../java/net/fabricmc/fabric/test/command/CommandTest.java | 2 +- .../fabric/test/attachment/gametest/AttachmentCopyTests.java | 2 +- gradle.properties | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fabric-command-api-v2/src/testmod/java/net/fabricmc/fabric/test/command/CommandTest.java b/fabric-command-api-v2/src/testmod/java/net/fabricmc/fabric/test/command/CommandTest.java index e85253c37..db62ff62a 100644 --- a/fabric-command-api-v2/src/testmod/java/net/fabricmc/fabric/test/command/CommandTest.java +++ b/fabric-command-api-v2/src/testmod/java/net/fabricmc/fabric/test/command/CommandTest.java @@ -107,7 +107,7 @@ public final class CommandTest implements ModInitializer { final float minHealth = reader.getReader().readFloat(); if (minHealth > 0) { - reader.setPredicate((entity) -> entity instanceof LivingEntity livingEntity && livingEntity.getHealth() >= minHealth); + reader.addPredicate((entity) -> entity instanceof LivingEntity livingEntity && livingEntity.getHealth() >= minHealth); } } ); diff --git a/fabric-data-attachment-api-v1/src/testmod/java/net/fabricmc/fabric/test/attachment/gametest/AttachmentCopyTests.java b/fabric-data-attachment-api-v1/src/testmod/java/net/fabricmc/fabric/test/attachment/gametest/AttachmentCopyTests.java index d86b43234..fa39158ef 100644 --- a/fabric-data-attachment-api-v1/src/testmod/java/net/fabricmc/fabric/test/attachment/gametest/AttachmentCopyTests.java +++ b/fabric-data-attachment-api-v1/src/testmod/java/net/fabricmc/fabric/test/attachment/gametest/AttachmentCopyTests.java @@ -57,7 +57,7 @@ public class AttachmentCopyTests implements FabricGameTest { entity.setAttached(DUMMY, () -> 10); entity.setAttached(COPY_ON_DEATH, () -> 10); - Entity moved = entity.teleportTo(new TeleportTarget(end, entity, TeleportTarget.field_52245)); + Entity moved = entity.teleportTo(new TeleportTarget(end, entity, TeleportTarget.NO_OP)); if (moved == null) throw new GameTestException("Cross-world teleportation failed"); IntSupplier attached1 = moved.getAttached(DUMMY); diff --git a/gradle.properties b/gradle.properties index 13324e4e9..20ef82058 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,8 +3,8 @@ org.gradle.parallel=true fabric.loom.multiProjectOptimisation=true version=0.99.4 -minecraft_version=1.21-pre1 -yarn_version=+build.2 +minecraft_version=1.21-pre2 +yarn_version=+build.1 loader_version=0.15.11 installer_version=1.0.1