mirror of
https://github.com/mat-1/azalea.git
synced 2024-05-08 13:31:38 +00:00
sort generated tags
This commit is contained in:
parent
1d80f531b7
commit
3b635c1d6d
File diff suppressed because it is too large
Load diff
|
@ -6,7 +6,7 @@ use once_cell::sync::Lazy;
|
|||
|
||||
use crate::Fluid;
|
||||
|
||||
pub static WATER: Lazy<HashSet<Fluid>> =
|
||||
Lazy::new(|| HashSet::from_iter(vec![Fluid::Water, Fluid::FlowingWater]));
|
||||
pub static LAVA: Lazy<HashSet<Fluid>> =
|
||||
Lazy::new(|| HashSet::from_iter(vec![Fluid::Lava, Fluid::FlowingLava]));
|
||||
pub static WATER: Lazy<HashSet<Fluid>> =
|
||||
Lazy::new(|| HashSet::from_iter(vec![Fluid::Water, Fluid::FlowingWater]));
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -16,7 +16,7 @@ use crate::{struct_name};
|
|||
|
||||
'''
|
||||
|
||||
for tag_name, tag in registries.items():
|
||||
for tag_name, tag in sorted(registries.items(), key=lambda x: x[0]):
|
||||
tag_name = tag_name.replace('/', '_')
|
||||
static_set_name = to_snake_case(tag_name).upper()
|
||||
generated += f'pub static {static_set_name}: Lazy<HashSet<{struct_name}>> = Lazy::new(|| HashSet::from_iter(vec!['
|
||||
|
|
Loading…
Reference in a new issue