diff options
| author | mat <git@matdoes.dev> | 2025-10-07 06:01:19 +0400 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-07 06:01:19 +0400 |
| commit | 1cf6d92f1a8be954f6885704c31f317b99b05972 (patch) | |
| tree | ab241a7b6fda815e777b914a8a9a153d23e81f06 /azalea-client/tests | |
| parent | 06807ec3ea7df6e83eed51b38f9d5e3bea9e7045 (diff) | |
| download | azalea-drasl-1cf6d92f1a8be954f6885704c31f317b99b05972.tar.xz | |
update ResolvableProfile data component to 1.21.9
Diffstat (limited to 'azalea-client/tests')
| -rw-r--r-- | azalea-client/tests/mine_block_rollback.rs | 1 | ||||
| -rw-r--r-- | azalea-client/tests/mine_block_timing.rs | 1 | ||||
| -rw-r--r-- | azalea-client/tests/mine_block_without_rollback.rs | 1 | ||||
| -rw-r--r-- | azalea-client/tests/packet_order_set_carried_item.rs | 3 |
4 files changed, 5 insertions, 1 deletions
diff --git a/azalea-client/tests/mine_block_rollback.rs b/azalea-client/tests/mine_block_rollback.rs index 67a66169..44ad629f 100644 --- a/azalea-client/tests/mine_block_rollback.rs +++ b/azalea-client/tests/mine_block_rollback.rs @@ -30,6 +30,7 @@ fn test_mine_block_rollback() { simulation.write_message(StartMiningBlockEvent { entity: simulation.entity, position: pos, + force: true, }); simulation.tick(); assert_eq!(simulation.get_block_state(pos), Some(Block::Air.into())); diff --git a/azalea-client/tests/mine_block_timing.rs b/azalea-client/tests/mine_block_timing.rs index 1cbd2f61..6548b28a 100644 --- a/azalea-client/tests/mine_block_timing.rs +++ b/azalea-client/tests/mine_block_timing.rs @@ -57,6 +57,7 @@ fn test_mine_block_timing() { simulation.write_message(StartMiningBlockEvent { entity: simulation.entity, position: pos, + force: false, }); sent_packets.clear(); simulation.tick(); diff --git a/azalea-client/tests/mine_block_without_rollback.rs b/azalea-client/tests/mine_block_without_rollback.rs index 16a371e5..a5a437a0 100644 --- a/azalea-client/tests/mine_block_without_rollback.rs +++ b/azalea-client/tests/mine_block_without_rollback.rs @@ -29,6 +29,7 @@ fn test_mine_block_without_rollback() { simulation.write_message(StartMiningBlockEvent { entity: simulation.entity, position: pos, + force: true, }); simulation.tick(); assert_eq!(simulation.get_block_state(pos), Some(Block::Air.into())); diff --git a/azalea-client/tests/packet_order_set_carried_item.rs b/azalea-client/tests/packet_order_set_carried_item.rs index 0506ad8e..a357dec0 100644 --- a/azalea-client/tests/packet_order_set_carried_item.rs +++ b/azalea-client/tests/packet_order_set_carried_item.rs @@ -55,13 +55,14 @@ fn test_packet_order_set_carried_item() { simulation.tick(); simulation.tick(); - simulation.write_message(SetSelectedHotbarSlotEvent { + simulation.trigger(SetSelectedHotbarSlotEvent { entity: simulation.entity, slot: 1, }); simulation.write_message(StartMiningBlockEvent { entity: simulation.entity, position: pos, + force: false, }); sent_packets.clear(); |
