override example crafting recipes

This commit is contained in:
InspectorCaracal 2024-02-10 18:07:42 -07:00 committed by GitHub
parent 1f4cd76e5f
commit d1f0988d80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,7 +148,7 @@ def _load_recipes():
if not _RECIPE_CLASSES:
paths = ["evennia.contrib.game_systems.crafting.example_recipes"]
if hasattr(settings, "CRAFT_RECIPE_MODULES"):
paths += make_iter(settings.CRAFT_RECIPE_MODULES)
paths = make_iter(settings.CRAFT_RECIPE_MODULES)
for path in paths:
for cls in callables_from_module(path).values():
if inherits_from(cls, CraftingRecipeBase):