Don't override location passed through kwargs
This commit is contained in:
parent
bd868f9a13
commit
152e86a7f3
1 changed files with 4 additions and 2 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,
|
||||||
|
|
@ -687,7 +690,6 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
|
||||||
ip=character_ip,
|
ip=character_ip,
|
||||||
typeclass=character_typeclass,
|
typeclass=character_typeclass,
|
||||||
permissions=character_permissions,
|
permissions=character_permissions,
|
||||||
location=ObjectDB.objects.get_id(settings.START_LOCATION),
|
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
if character:
|
if character:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue