From f47fafe7e3fb96f0183914aad5b6709992f715b0 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 11 Jan 2021 02:48:57 +0100 Subject: [PATCH] remove empty shopslots from regions --- Main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Main.py b/Main.py index 4b5a3757..eb094246 100644 --- a/Main.py +++ b/Main.py @@ -256,6 +256,8 @@ def main(args, seed=None): shop.push_inventory(slot_num, item_name, price, 1, location.item.player if location.item.player != location.player else 0) + else: + shop.region.locations.remove(location) logger.info('Patching ROM.')