From 7857a014b92e64361ee237ceae7ef1acc185ac46 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:59:05 -0600 Subject: 1.20.3 (#110) * 23w40a * 23w41a * 23w42a * 23w43a * 23w44a * serialize FormattedText as nbt in network * use azalea-nbt/serde in azalea-chat * 23w45a * fix 23w45a to compile * handle Object in codegen * 1.20.3-pre2 * remove unused clientbound_resource_pack_packet.rs * merge main and make azalea-chat use simdnbt * 1.20.3-rc1 * fix tests * use simdnbt 0.3 * fix ServerboundSetJigsawBlockPacket * 1.20.3 --- azalea/examples/testbot.rs | 6 ++++++ azalea/src/accept_resource_packs.rs | 2 ++ 2 files changed, 8 insertions(+) (limited to 'azalea') diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index a304e2ce..1c8caad7 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -301,6 +301,12 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< bot.chat("no chunk found"); } } + "debugblock" => { + // send the block that we're standing on + let block_pos = BlockPos::from(bot.position().down(0.1)); + let block = bot.world().read().get_block_state(&block_pos); + bot.chat(&format!("block: {block:?}")); + } "debugchunks" => { println!("shared:"); diff --git a/azalea/src/accept_resource_packs.rs b/azalea/src/accept_resource_packs.rs index c99b1cac..02953d9e 100644 --- a/azalea/src/accept_resource_packs.rs +++ b/azalea/src/accept_resource_packs.rs @@ -34,6 +34,7 @@ fn accept_resource_pack( send_packet_events.send(SendPacketEvent { entity: event.entity, packet: ServerboundResourcePackPacket { + id: event.id, action: serverbound_resource_pack_packet::Action::Accepted, } .get(), @@ -41,6 +42,7 @@ fn accept_resource_pack( send_packet_events.send(SendPacketEvent { entity: event.entity, packet: ServerboundResourcePackPacket { + id: event.id, action: serverbound_resource_pack_packet::Action::SuccessfullyLoaded, } .get(), -- cgit v1.2.3