From 9ce3232b4c60815c45fd71e3b8aae47bac6fa236 Mon Sep 17 00:00:00 2001 From: InspectorCaracal Date: Sun, 11 Feb 2024 22:11:54 -0700 Subject: [PATCH] partial match bugfix --- evennia/contrib/game_systems/crafting/crafting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/contrib/game_systems/crafting/crafting.py b/evennia/contrib/game_systems/crafting/crafting.py index 7dea838ab3..593f1a04b9 100644 --- a/evennia/contrib/game_systems/crafting/crafting.py +++ b/evennia/contrib/game_systems/crafting/crafting.py @@ -947,7 +947,7 @@ def craft(crafter, recipe_name, *inputs, raise_exception=False, **kwargs): # try in-match matches = [key for key in _RECIPE_CLASSES if recipe_name in key] if len(matches) == 1: - RecipeClass = matches[0] + RecipeClass = _RECIPE_CLASSES[matches[0]] if not RecipeClass: if raise_exception: