fix: remove entities from list before full destroy
This commit is contained in:
parent
a5e83f7325
commit
4118adf674
|
@ -35,7 +35,7 @@ export class EntityList extends decorate(class {}) {
|
|||
this.state = this.state.set(uuid, entity.state);
|
||||
entity.addTrait('listed');
|
||||
entity.list = this;
|
||||
entity.once('destroyed', () => {
|
||||
entity.once('destroy', () => {
|
||||
this.removeEntity(entity);
|
||||
});
|
||||
this.emit('entityAdded', entity);
|
||||
|
|
Loading…
Reference in New Issue
Block a user