1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
This commit is contained in:
mat 2022-05-25 20:28:46 -05:00
parent 054c6e678b
commit 35511e83c3
2 changed files with 4 additions and 4 deletions

View file

@ -141,7 +141,7 @@ def set_packets(packet_ids: list[int], packet_class_names: list[str], direction:
continue
elif line.strip() == 'Clientbound => {':
new_mod_rs.append(line)
if direction == 'serverbound':
if direction == 'clientbound':
ignore_lines = True
for packet_id, packet_class_name in zip(packet_ids, packet_class_names):
new_mod_rs.append(
@ -211,7 +211,7 @@ def change_packet_ids(id_map: dict[int, int], direction: str, state: str):
set_packets(new_packet_ids, existing_packet_class_names, direction, state)
def remove_packet_ids(packet_ids: list[int], direction: str, state: str):
def remove_packet_ids(removing_packet_ids: list[int], direction: str, state: str):
existing_packet_ids, existing_packet_class_names = get_packets(
direction, state)
@ -219,7 +219,7 @@ def remove_packet_ids(packet_ids: list[int], direction: str, state: str):
new_packet_class_names = []
for packet_id, packet_class_name in zip(existing_packet_ids, existing_packet_class_names):
if packet_id not in packet_ids:
if packet_id not in removing_packet_ids:
new_packet_ids.append(packet_id)
new_packet_class_names.append(packet_class_name)