From ffbe7a3e426e66c21c7156780728f96f8277c68a Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 17 Jun 2025 06:49:07 -1200 Subject: 1.21.6 (#215) --- codegen/lib/code/packet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'codegen/lib/code/packet.py') diff --git a/codegen/lib/code/packet.py b/codegen/lib/code/packet.py index 98f51ae9..fe0f9f9f 100644 --- a/codegen/lib/code/packet.py +++ b/codegen/lib/code/packet.py @@ -1,4 +1,4 @@ -from lib.utils import padded_hex, to_snake_case, to_camel_case, get_dir_location +from lib.utils import to_snake_case, to_camel_case, get_dir_location from lib.code.utils import burger_type_to_rust_type, write_packet_file from lib.mappings import Mappings from typing import Optional @@ -75,14 +75,14 @@ def set_packets(packets_report): code.append(f"declare_state_packets!({to_camel_case(state)}Packet,") code.append(" Clientbound => [") for packet_id, packet_name in enumerate(clientbound_packets): - code.append(f" {packet_name}, // {padded_hex(packet_id)}") + code.append(f" {packet_name},") expected_packet_module_names.add( get_packet_module_name(packet_name, "clientbound") ) code.append(" ],") code.append(" Serverbound => [") for packet_id, packet_name in enumerate(serverbound_packets): - code.append(f" {packet_name}, // {padded_hex(packet_id)}") + code.append(f" {packet_name},") expected_packet_module_names.add( get_packet_module_name(packet_name, "serverbound") ) -- cgit v1.2.3