diff options
| author | mat <git@matdoes.dev> | 2025-06-09 14:29:44 +0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-09 20:33:06 +1200 |
| commit | 40bcb62a777fca73a5b887af4d9a3fce01ee9053 (patch) | |
| tree | 0311b0a2ee436d775a3b552f62a8bbffa925397b /azalea-client/tests | |
| parent | 4a4de819616d620d15680e71fb32390e28ab07cd (diff) | |
| download | azalea-drasl-40bcb62a777fca73a5b887af4d9a3fce01ee9053.tar.xz | |
update config_fast_builds
Diffstat (limited to 'azalea-client/tests')
| -rw-r--r-- | azalea-client/tests/move_and_despawn_entity.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/azalea-client/tests/move_and_despawn_entity.rs b/azalea-client/tests/move_and_despawn_entity.rs index 080ca903..09d901bc 100644 --- a/azalea-client/tests/move_and_despawn_entity.rs +++ b/azalea-client/tests/move_and_despawn_entity.rs @@ -25,9 +25,7 @@ fn test_move_and_despawn_entity() { ResourceLocation::new("azalea:overworld"), )); - for x in 0..=10 { - simulation.receive_packet(make_basic_empty_chunk(ChunkPos::new(x, 0), (384 + 64) / 16)); - } + simulation.receive_packet(make_basic_empty_chunk(ChunkPos::new(0, 0), (384 + 64) / 16)); simulation.tick(); simulation.receive_packet(make_basic_add_entity(EntityKind::Cow, 123, (0.5, 64., 0.5))); @@ -47,11 +45,4 @@ fn test_move_and_despawn_entity() { entity_ids: vec![MinecraftEntityId(123)], }); simulation.tick(); - - // make sure it's despawned - let mut cow_query = simulation.app.world_mut().query_filtered::<(), With<Cow>>(); - let cow_iter = cow_query.iter(simulation.app.world()); - assert_eq!(cow_iter.count(), 0, "cow should be despawned"); - - simulation.tick(); } |
