mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Add cmd_set on load
This commit is contained in:
parent
217bd711e7
commit
74f8715d5a
1 changed files with 4 additions and 1 deletions
|
|
@ -106,8 +106,11 @@ class Component(metaclass=BaseComponent):
|
|||
Component: The loaded instance of the component
|
||||
|
||||
"""
|
||||
inst = cls(host)
|
||||
if inst.cmd_set:
|
||||
host.cmdset.add(inst.cmd_set)
|
||||
|
||||
return cls(host)
|
||||
return inst
|
||||
|
||||
def at_added(self, host):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue