From 8e67bf23415b8a823dc250b64c9c8b930bc8b64e Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 13 Mar 2026 16:52:41 -1100 Subject: drop unnecessary dependency on pastey --- azalea-client/src/plugins/packet/mod.rs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'azalea-client/src/plugins/packet') diff --git a/azalea-client/src/plugins/packet/mod.rs b/azalea-client/src/plugins/packet/mod.rs index 4309850e..e758ae5f 100644 --- a/azalea-client/src/plugins/packet/mod.rs +++ b/azalea-client/src/plugins/packet/mod.rs @@ -55,25 +55,7 @@ impl Plugin for PacketPlugin { } } -#[doc(hidden)] -macro_rules! __declare_packet_handlers { - ( - $packetenum:ident, - $packetvar:expr, - $handler:ident, - [$($packet:path),+ $(,)?] - ) => { - pastey::paste! { - match $packetvar { - $( - $packetenum::[< $packet:camel >](p) => $handler.$packet(p), - )+ - } - } - }; -} - -pub(crate) use __declare_packet_handlers as declare_packet_handlers; +pub(crate) use azalea_protocol::azalea_protocol_macros::declare_packet_handlers; #[derive(Resource)] struct CachedSystemState(SystemState); -- cgit v1.2.3