diff options
Diffstat (limited to 'codegen/lib')
| -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") |
