diff options
| author | mat <git@matdoes.dev> | 2026-03-13 16:52:41 -1100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-13 16:52:41 -1100 |
| commit | 8e67bf23415b8a823dc250b64c9c8b930bc8b64e (patch) | |
| tree | e2a1f6b10648c8bd21f96baf9b1a90637b6437c5 /azalea-client | |
| parent | 75a7ec5f2989073a3534f377bfeb0d23de844593 (diff) | |
| download | azalea-drasl-8e67bf23415b8a823dc250b64c9c8b930bc8b64e.tar.xz | |
drop unnecessary dependency on pastey
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>); |
