From e31b097cd7e51e3c2063e5cc7d69c89f6989eba0 Mon Sep 17 00:00:00 2001 From: RainbowUnicorn7297 <67099591+RainbowUnicorn7297@users.noreply.github.com> Date: Wed, 14 Oct 2020 19:51:46 +0800 Subject: [PATCH] Bug fix for writing SequinGate objects --- src/levels.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/levels.py b/src/levels.py index 97b261d..6112679 100644 --- a/src/levels.py +++ b/src/levels.py @@ -225,12 +225,12 @@ def write_gate_comp(f, obj): write_string(f, obj['spn_name']) write_param_path(f, obj.get('param_path'), obj.get('param_path_hash')) - write_int(len(obj['boss_patterns'])) + write_int(f, len(obj['boss_patterns'])) for boss_pattern in obj['boss_patterns']: if 'node_name' in boss_pattern: write_hash(f, boss_pattern['node_name']) else: - write_hex(f, boss_pattern['node_name_hash']) + write_hex_reverse(f, boss_pattern['node_name_hash']) write_string(f, boss_pattern['lvl_name']) write_bool(f, True) write_string(f, boss_pattern['sentry_type'])