mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
partial match bugfix
This commit is contained in:
parent
6d5140cebd
commit
9ce3232b4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue