From 38bc3d47ad6c90c6de995f55b3b86fe3f4a7caa1 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 12 Jul 2021 14:32:39 +0200 Subject: [PATCH] Fix: No longer allow setting starting items from other games --- Main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Main.py b/Main.py index ccc793d9..10657a19 100644 --- a/Main.py +++ b/Main.py @@ -22,7 +22,7 @@ from worlds.alttp.Shops import create_shops, ShopSlotFill, SHOP_ID_START, total_ from worlds.alttp.ItemPool import generate_itempool, difficulties, fill_prizes from Utils import output_path, parse_player_names, get_options, __version__, version_tuple from worlds.generic.Rules import locality_rules -from worlds import lookup_any_item_name_to_id, AutoWorld +from worlds import AutoWorld import Patch seeddigits = 20 @@ -162,9 +162,7 @@ def main(args, seed=None): for player in world.player_ids: for item_name in args.startinventory[player]: - item = Item(item_name, True, lookup_any_item_name_to_id[item_name], player) - item.game = world.game[player] - world.push_precollected(item) + world.push_precollected(world.create_item(item_name, player)) for player in world.player_ids: