mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 17:26:32 +01:00
Merge pull request #2693 from ChrisLR/fix-prototype-loading-xyzgrid
Fix Prototype Loading when using injected prototypes
This commit is contained in:
commit
318bb98943
1 changed files with 3 additions and 1 deletions
|
|
@ -528,8 +528,10 @@ def search_prototype(
|
|||
|
||||
"""
|
||||
# This will load the prototypes the first time they are searched
|
||||
if not _MODULE_PROTOTYPE_MODULES:
|
||||
loaded = getattr(load_module_prototypes, '_LOADED', False)
|
||||
if not loaded:
|
||||
load_module_prototypes()
|
||||
setattr(load_module_prototypes, '_LOADED', True)
|
||||
|
||||
# prototype keys are always in lowecase
|
||||
if key:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue