diff options
| author | mat <github@matdoes.dev> | 2022-05-25 00:40:23 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-25 00:40:23 -0500 |
| commit | d69f4445f31b0093d233fc052735c772bdab16b1 (patch) | |
| tree | 97372f9e2c1c33d32df2fabe9189f8a592e08c51 /codegen/lib/code/packet.py | |
| parent | 2b34df21885a46f6b71c1c66a332f51d81f73044 (diff) | |
| download | azalea-drasl-d69f4445f31b0093d233fc052735c772bdab16b1.tar.xz | |
Update packet.py
Diffstat (limited to 'codegen/lib/code/packet.py')
| -rw-r--r-- | codegen/lib/code/packet.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/codegen/lib/code/packet.py b/codegen/lib/code/packet.py index f9135194..af41a390 100644 --- a/codegen/lib/code/packet.py +++ b/codegen/lib/code/packet.py @@ -129,6 +129,7 @@ def set_packets(packet_ids: list[int], packet_class_names: list[str], direction: for line in mod_rs: if line.strip() == 'Serverbound => {': + new_mod_rs.append(line) if direction == 'serverbound': ignore_lines = True for packet_id, packet_class_name in zipped_packets: @@ -137,7 +138,9 @@ def set_packets(packet_ids: list[int], packet_class_names: list[str], direction: ) else: ignore_lines = False + continue elif line.strip() == 'Clientbound => {': + new_mod_rs.append(line) if direction == 'serverbound': ignore_lines = True for packet_id, packet_class_name in zipped_packets: @@ -146,6 +149,7 @@ def set_packets(packet_ids: list[int], packet_class_names: list[str], direction: ) else: ignore_lines = False + continue elif line.strip() in ('}', '},'): ignore_lines = False |
