diff options
Diffstat (limited to 'codegen/lib/extract.py')
| -rw-r--r-- | codegen/lib/extract.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/codegen/lib/extract.py b/codegen/lib/extract.py index 357059f6..b575b697 100644 --- a/codegen/lib/extract.py +++ b/codegen/lib/extract.py @@ -254,16 +254,16 @@ def get_packet_list(version_id: str): packet_list = [] for state, state_value in packets_report.items(): for direction, direction_value in state_value.items(): - for packet_resourcelocation, packet_value in direction_value.items(): - assert packet_resourcelocation.startswith("minecraft:") - packet_resourcelocation = upper_first_letter( - to_camel_case(packet_resourcelocation[len("minecraft:") :]) + for packet_identifier, packet_value in direction_value.items(): + assert packet_identifier.startswith("minecraft:") + packet_identifier = upper_first_letter( + to_camel_case(packet_identifier[len("minecraft:") :]) ) packet_list.append( { "state": state, "direction": direction, - "name": packet_resourcelocation, + "name": packet_identifier, "id": packet_value["protocol_id"], } ) |
