Only start GLOBAL_SCRIPTS in Server mode
This commit is contained in:
parent
b819bff556
commit
5d2ce0e409
1 changed files with 2 additions and 2 deletions
|
|
@ -227,7 +227,6 @@ def _init(portal_mode=False):
|
|||
else:
|
||||
# Create the ServerSesssionHandler
|
||||
from evennia.server import sessionhandler
|
||||
|
||||
sess_handler_class = class_from_module(settings.SERVER_SESSION_HANDLER_CLASS)
|
||||
sessionhandler.SESSIONS = sess_handler_class()
|
||||
sessionhandler.SESSION_HANDLER = sessionhandler.SESSIONS
|
||||
|
|
@ -378,7 +377,8 @@ def _init(portal_mode=False):
|
|||
|
||||
# delayed starts - important so as to not back-access evennia before it has
|
||||
# finished initializing
|
||||
GLOBAL_SCRIPTS.start()
|
||||
if not portal_mode:
|
||||
GLOBAL_SCRIPTS.start()
|
||||
|
||||
|
||||
def set_trace(term_size=(140, 80), debugger="auto"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue