mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 05:57:16 +02:00
Consider prototypes loaded only when called on search
This commit is contained in:
parent
fdff5f6cd2
commit
39d300458c
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