mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
Fix removed packets
This commit is contained in:
parent
c851204dd0
commit
9f192301fa
1 changed files with 3 additions and 3 deletions
|
@ -35,9 +35,9 @@ for packet in new_packet_list:
|
|||
# find removed packets
|
||||
removed_packets: list[PacketIdentifier] = []
|
||||
for packet, packet_name in old_packets.items():
|
||||
if packet_name not in old_packets.values():
|
||||
if packet_name not in new_packets.values():
|
||||
removed_packets.append(packet)
|
||||
print('Removed packet:', packet)
|
||||
print('Removed packet:', packet, packet_name)
|
||||
# for (direction, state), packets in group_packets(removed_packets).items():
|
||||
# lib.code.packet.remove_packet_ids(packets, direction, state)
|
||||
|
||||
|
@ -63,7 +63,7 @@ added_packets: list[PacketIdentifier] = []
|
|||
for packet, packet_name in new_packets.items():
|
||||
if packet_name not in old_packets.values():
|
||||
added_packets.append(packet)
|
||||
print('Added packet:', packet)
|
||||
print('Added packet:', packet, packet_name)
|
||||
# for packet in added_packets:
|
||||
# lib.code.packet.generate_packet(
|
||||
# new_burger_data[0]['packets']['packet'], new_mappings, packet.packet_id, packet.direction, packet.state)
|
||||
|
|
Loading…
Add table
Reference in a new issue