fix: whoops
This commit is contained in:
parent
eab27a5c3a
commit
4d18430260
|
@ -104,11 +104,11 @@ export class EntityList extends decorate(class {}) {
|
||||||
|
|
||||||
removeEntity(entity) {
|
removeEntity(entity) {
|
||||||
const uuid = entity.instanceUuid;
|
const uuid = entity.instanceUuid;
|
||||||
if (!(uuid in this._entities[uuid])) {
|
if (!(uuid in this._entities)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
delete this._entities[uuid];
|
delete this._entities[uuid];
|
||||||
this._flatEntities.splice(index, this._flatEntities.indexOf(entity));
|
this._flatEntities.splice(this._flatEntities.indexOf(entity), 1);
|
||||||
this._entityTickers.splice(this._entityTickers.indexOf(entity.tick), 1);
|
this._entityTickers.splice(this._entityTickers.indexOf(entity.tick), 1);
|
||||||
this.state = this.state.delete(uuid);
|
this.state = this.state.delete(uuid);
|
||||||
this.emit('entityRemoved', entity);
|
this.emit('entityRemoved', entity);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user