sort generated tags

This commit is contained in:
mat 2024-04-23 21:16:18 -05:00
parent 1d80f531b7
commit 3b635c1d6d
4 changed files with 3905 additions and 3905 deletions

File diff suppressed because it is too large Load diff

View file

@ -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

View file

@ -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!['