aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/packet
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/plugins/packet')
-rw-r--r--azalea-client/src/plugins/packet/mod.rs20
1 files changed, 1 insertions, 19 deletions
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<T: SystemParam + 'static>(SystemState<T>);