diff options
| author | Ubuntu <github@matdoes.dev> | 2022-12-09 15:13:14 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-12-09 15:13:14 +0000 |
| commit | ca00dbab12ab7de0bba462b9814b9f491b23da69 (patch) | |
| tree | 560bd906d9ca1fcb822290286e9bf5990826163a /azalea-block | |
| parent | f0097612473d20ebac21e8ae5eba32bf32c2fe42 (diff) | |
| parent | 70e2dfed16da8d5130460ea15b47701e622f4a9f (diff) | |
| download | azalea-drasl-ca00dbab12ab7de0bba462b9814b9f491b23da69.tar.xz | |
Merge branch 'main' of https://github.com/mat-1/azalea into main
Diffstat (limited to 'azalea-block')
| -rwxr-xr-x | azalea-block/azalea-block-macros/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/azalea-block/azalea-block-macros/src/lib.rs b/azalea-block/azalea-block-macros/src/lib.rs index 08bb4fbe..4f750383 100755 --- a/azalea-block/azalea-block-macros/src/lib.rs +++ b/azalea-block/azalea-block-macros/src/lib.rs @@ -324,7 +324,8 @@ pub fn make_block_states(input: TokenStream) -> TokenStream { let mut properties_with_name: Vec<PropertyWithNameAndDefault> = Vec::with_capacity(block.properties_and_defaults.len()); - // Used to determine the index of the property so we can optionally add a number to it + // Used to determine the index of the property so we can optionally add a number + // to it let mut previous_names: Vec<String> = Vec::new(); for property in &block.properties_and_defaults { let index: Option<usize> = if block @@ -343,10 +344,12 @@ pub fn make_block_states(input: TokenStream) -> TokenStream { } else { None }; + // ```ignore // let mut property_name = property_struct_names_to_names // .get(&property.property_type.to_string()) // .unwrap_or_else(|| panic!("Property '{}' is bad", property.property_type)) // .clone(); + // ``` let mut property_name = property_struct_names_to_names .get(&property.name.to_string()) .cloned() |
