Merge pull request #2291 from tim-chaplin/fix_start_location
Fix settings.START_LOCATION behavior
This commit is contained in:
commit
d8535fad4e
1 changed files with 4 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
|
||||||
- at_server_reload()
|
- at_server_reload()
|
||||||
- at_server_shutdown()
|
- at_server_shutdown()
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
objects = AccountManager()
|
objects = AccountManager()
|
||||||
|
|
||||||
|
|
@ -680,6 +680,9 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
|
||||||
)
|
)
|
||||||
Character = class_from_module(character_typeclass)
|
Character = class_from_module(character_typeclass)
|
||||||
|
|
||||||
|
if "location" not in kwargs:
|
||||||
|
kwargs["location"] = ObjectDB.objects.get_id(settings.START_LOCATION)
|
||||||
|
|
||||||
# Create the character
|
# Create the character
|
||||||
character, errs = Character.create(
|
character, errs = Character.create(
|
||||||
character_key,
|
character_key,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue