mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-14 19:25:23 -05:00
1.21-pre2
This commit is contained in:
parent
afdfc921b8
commit
6a6dfa1985
3 changed files with 4 additions and 4 deletions
|
@ -107,7 +107,7 @@ public final class CommandTest implements ModInitializer {
|
||||||
final float minHealth = reader.getReader().readFloat();
|
final float minHealth = reader.getReader().readFloat();
|
||||||
|
|
||||||
if (minHealth > 0) {
|
if (minHealth > 0) {
|
||||||
reader.setPredicate((entity) -> entity instanceof LivingEntity livingEntity && livingEntity.getHealth() >= minHealth);
|
reader.addPredicate((entity) -> entity instanceof LivingEntity livingEntity && livingEntity.getHealth() >= minHealth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class AttachmentCopyTests implements FabricGameTest {
|
||||||
entity.setAttached(DUMMY, () -> 10);
|
entity.setAttached(DUMMY, () -> 10);
|
||||||
entity.setAttached(COPY_ON_DEATH, () -> 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");
|
if (moved == null) throw new GameTestException("Cross-world teleportation failed");
|
||||||
|
|
||||||
IntSupplier attached1 = moved.getAttached(DUMMY);
|
IntSupplier attached1 = moved.getAttached(DUMMY);
|
||||||
|
|
|
@ -3,8 +3,8 @@ org.gradle.parallel=true
|
||||||
fabric.loom.multiProjectOptimisation=true
|
fabric.loom.multiProjectOptimisation=true
|
||||||
|
|
||||||
version=0.99.4
|
version=0.99.4
|
||||||
minecraft_version=1.21-pre1
|
minecraft_version=1.21-pre2
|
||||||
yarn_version=+build.2
|
yarn_version=+build.1
|
||||||
loader_version=0.15.11
|
loader_version=0.15.11
|
||||||
installer_version=1.0.1
|
installer_version=1.0.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue