From 74501bebd1a572c98a3906d231a82193cfd983b7 Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:24:00 -0500 Subject: [PATCH] Fix the pak2 fix --- pythonlib/formats/rebirth/pak2.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pythonlib/formats/rebirth/pak2.py b/pythonlib/formats/rebirth/pak2.py index 25d19da..232e91e 100644 --- a/pythonlib/formats/rebirth/pak2.py +++ b/pythonlib/formats/rebirth/pak2.py @@ -85,14 +85,13 @@ def create_pak2(data: pak2_file)->bytes: offsets_new = [] offsets_new.append(output.tell()) - # theirsce - offsets_new.append(insert_padded_chunk(output, data.chunks.theirsce)) - - # lipsync + # lipsync & theirsce if data.chunks.lipsync: + offsets_new.append(insert_padded_chunk(output, data.chunks.theirsce)) offsets_new.append(insert_padded_chunk(output, data.chunks.lipsync)) else: offsets_new.append(0) + offsets_new.append(insert_padded_chunk(output, data.chunks.theirsce)) # unused offsets_new.append(insert_padded_chunk(output, data.chunks.unused))