diff options
| author | mat <git@matdoes.dev> | 2025-11-13 10:12:26 +0700 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-11-13 10:12:26 +0700 |
| commit | 5ef9ab939500388fb4e636974161eb0959130065 (patch) | |
| tree | 5b9715d73dd3f281995c3f418b5176bf7858bd43 /codegen | |
| parent | fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 (diff) | |
| download | azalea-drasl-5ef9ab939500388fb4e636974161eb0959130065.tar.xz | |
rename resourcelocation in a few more places
Diffstat (limited to 'codegen')
| -rw-r--r-- | codegen/lib/code/packet.py | 4 | ||||
| -rw-r--r-- | codegen/lib/code/utils.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/codegen/lib/code/packet.py b/codegen/lib/code/packet.py index 1337ac2e..50d01ce2 100644 --- a/codegen/lib/code/packet.py +++ b/codegen/lib/code/packet.py @@ -118,9 +118,9 @@ def set_packets(packets_report): def packet_direction_report_to_packet_names(report): name_to_id = {} - for resource_location, packet in report.items(): + for identifier, packet in report.items(): packet_id = packet["protocol_id"] - name_to_id[resource_location.split(":")[-1]] = packet_id + name_to_id[identifier.split(":")[-1]] = packet_id names_sorted = [name for name in sorted(name_to_id, key=lambda x: name_to_id[x])] return names_sorted diff --git a/codegen/lib/code/utils.py b/codegen/lib/code/utils.py index bbb8f647..62b4627b 100644 --- a/codegen/lib/code/utils.py +++ b/codegen/lib/code/utils.py @@ -58,7 +58,7 @@ def burger_type_to_rust_type( uses.add("azalea_chat::FormattedText") elif burger_type == "identifier": field_type_rs = "Identifier" - uses.add("azalea_core::resource_location::Identifier") + uses.add("azalea_core::identifier::Identifier") elif burger_type == "uuid": field_type_rs = "Uuid" uses.add("uuid::Uuid") |
