From 0d358337794f84b50abb7b6ebcb0ced3d1599b41 Mon Sep 17 00:00:00 2001 From: Thanatos Date: Wed, 27 Sep 2023 18:46:48 +0200 Subject: [PATCH] Hack to try fix disappearing actors --- open_samus_returns_rando/specific_patches/door_patches.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/open_samus_returns_rando/specific_patches/door_patches.py b/open_samus_returns_rando/specific_patches/door_patches.py index d13c443..cbf25db 100644 --- a/open_samus_returns_rando/specific_patches/door_patches.py +++ b/open_samus_returns_rando/specific_patches/door_patches.py @@ -145,7 +145,8 @@ def _patch_beam_covers(editor: PatcherEditor): entity_groups = [group for group_name, group in scenario.all_actor_groups() if group_name in list(scenario.all_actor_group_names_for_actor(cover_name))] for group in entity_groups: - group.names.append(new_actor_name) + idx = group.names.index(cover_name) + group.names.insert(idx, new_actor_name) def _patch_charge_doors(editor: PatcherEditor):