mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Fix bug in spawning with attributes
This commit is contained in:
parent
dd7ed22019
commit
d444820036
1 changed files with 2 additions and 1 deletions
|
|
@ -733,8 +733,9 @@ def spawn(*prototypes, **kwargs):
|
|||
val = make_iter(prot.pop("attrs", []))
|
||||
attributes = []
|
||||
for (attrname, value, category, locks) in val:
|
||||
attributes.append((attrname, init_spawn_value(val), category, locks))
|
||||
attributes.append((attrname, init_spawn_value(value), category, locks))
|
||||
|
||||
print("attributes to spawn: IN: {}, OUT: {}".format(val, attributes))
|
||||
simple_attributes = []
|
||||
for key, value in ((key, value) for key, value in prot.items()
|
||||
if not (key.startswith("ndb_"))):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue