aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/packet.py
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-11-13 10:12:26 +0700
committermat <git@matdoes.dev>2025-11-13 10:12:26 +0700
commit5ef9ab939500388fb4e636974161eb0959130065 (patch)
tree5b9715d73dd3f281995c3f418b5176bf7858bd43 /codegen/lib/code/packet.py
parentfbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 (diff)
downloadazalea-drasl-5ef9ab939500388fb4e636974161eb0959130065.tar.xz
rename resourcelocation in a few more places
Diffstat (limited to 'codegen/lib/code/packet.py')
-rw-r--r--codegen/lib/code/packet.py4
1 files changed, 2 insertions, 2 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