diff options
| author | mat <github@matdoes.dev> | 2022-09-10 19:46:01 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-09-10 19:46:01 -0500 |
| commit | c31a1f943464a096e0988363f4d56c937465642f (patch) | |
| tree | e1c72f288e4b63a812fc5e16d212415faef1a168 /azalea-protocol/azalea-protocol-macros/src | |
| parent | 749c243fc51a212fa2479f10474079e6f7a95231 (diff) | |
| download | azalea-drasl-c31a1f943464a096e0988363f4d56c937465642f.tar.xz | |
fix outdated EntityDataValue
Diffstat (limited to 'azalea-protocol/azalea-protocol-macros/src')
| -rw-r--r-- | azalea-protocol/azalea-protocol-macros/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/azalea-protocol-macros/src/lib.rs b/azalea-protocol/azalea-protocol-macros/src/lib.rs index d15fecf0..a83c09bb 100644 --- a/azalea-protocol/azalea-protocol-macros/src/lib.rs +++ b/azalea-protocol/azalea-protocol-macros/src/lib.rs @@ -365,7 +365,7 @@ fn variant_name_from(name: &syn::Ident) -> syn::Ident { variant_name = variant_name["Serverbound".len()..].to_string(); } if variant_name.ends_with("Packet") { - variant_name = variant_name[..variant_name.len()-"Packet".len()].to_string(); + variant_name = variant_name[..variant_name.len() - "Packet".len()].to_string(); } syn::Ident::new(&variant_name, name.span()) } |
