From 2a596f7d4074ce628d91245de4ed66586ab69b18 Mon Sep 17 00:00:00 2001 From: 7shades <103786069+seven-shades@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:42:11 -0800 Subject: [PATCH] updated pack_old_palette_chunk --- background.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/background.py b/background.py index 5867138..900a659 100644 --- a/background.py +++ b/background.py @@ -53,10 +53,9 @@ def pack_index(character_size, y_flip, x_flip, id): else: return pack_index_1word(character_size, y_flip, x_flip, id) -def pack_old_palette_chunk(old_palette_chunk): - with open("palette.bin", "wb") as f: - for color in old_palette_chunk.packets[0].colors: - f.write(pack_bgr555(*color)) +def pack_old_palette_chunk(f,old_palette_chunk): + for color in old_palette_chunk.packets[0].colors: + f.write(pack_bgr555(*color)) def pack_palette_chunk(f, palette_chunk): assert palette_chunk.first_color_index_to_change == 0