diff options
Diffstat (limited to 'azalea-client')
| -rw-r--r-- | azalea-client/Cargo.toml | 1 | ||||
| -rw-r--r-- | azalea-client/src/plugins/packet/mod.rs | 20 |
2 files changed, 1 insertions, 20 deletions
diff --git a/azalea-client/Cargo.toml b/azalea-client/Cargo.toml index b6ed7f12..d260eca0 100644 --- a/azalea-client/Cargo.toml +++ b/azalea-client/Cargo.toml @@ -30,7 +30,6 @@ derive_more = { workspace = true, features = ["deref", "deref_mut"] } indexmap.workspace = true minecraft_folder_path.workspace = true parking_lot.workspace = true -pastey.workspace = true regex.workspace = true reqwest = { workspace = true, optional = true, features = ["socks"] } simdnbt.workspace = true 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>); |
