From 5ef9ab939500388fb4e636974161eb0959130065 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 13 Nov 2025 10:12:26 +0700 Subject: rename resourcelocation in a few more places --- codegen/lib/code/packet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'codegen/lib/code/packet.py') 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 -- cgit v1.2.3