aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/extract.py
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-11-13 12:34:47 +0930
committermat <git@matdoes.dev>2025-11-13 07:04:52 +0400
commitfbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 (patch)
tree3126fb34a4e0ac979a1103a8227a2b9a136c1553 /codegen/lib/extract.py
parenta4312599f7c04709a92b7be238dcf577bafbb14f (diff)
downloadazalea-drasl-fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00.tar.xz
rename ResourceLocation to Identifier ahead of mojmap changes
Diffstat (limited to 'codegen/lib/extract.py')
-rw-r--r--codegen/lib/extract.py10
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"],
}
)