From fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 13 Nov 2025 12:34:47 +0930 Subject: rename ResourceLocation to Identifier ahead of mojmap changes --- codegen/lib/extract.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'codegen/lib/extract.py') 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"], } ) -- cgit v1.2.3