diff options
| author | mat <git@matdoes.dev> | 2026-05-06 03:36:16 -0100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-07 08:05:58 -1200 |
| commit | 9ffd0e80bbb3feace231553d6539124585b03e3c (patch) | |
| tree | ad8df7d07df9f8f542e288c263d76b8ffd637416 /codegen | |
| parent | 4d1f430408dc6854c1af5fb14b2641e293a9cf43 (diff) | |
| download | azalea-drasl-9ffd0e80bbb3feace231553d6539124585b03e3c.tar.xz | |
change panicking functions in Client and EntityRef to return an AzaleaResult instead
Diffstat (limited to 'codegen')
| -rw-r--r-- | codegen/lib/code/tags.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/codegen/lib/code/tags.py b/codegen/lib/code/tags.py index 2a44d35c..e5a21bdc 100644 --- a/codegen/lib/code/tags.py +++ b/codegen/lib/code/tags.py @@ -62,6 +62,7 @@ use crate::{{{registry_module}::{struct_name}, tags::RegistryTag}}; generated += f"pub static {static_set_name}: LazyLock<RegistryTag<{struct_name}>> = LazyLock::new(|| RegistryTag::new(vec![" if not is_data_registry: + assert protocol_ids is not None # this is important because we binary search registries in some cases # and they need to be sorted by their rust Ord order entries.sort(key=lambda e: protocol_ids[e]) |
