fix: list check

This commit is contained in:
cha0s 2021-01-25 12:36:08 -06:00
parent b4f11a47b9
commit e3b5603d31

View File

@ -187,7 +187,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
protonParticle.dead = true;
protonParticle.removeAllBehaviours();
});
if (particle.listed) {
if (particle.listed && this.entity.list) {
this.entity.list.addEntity(entity);
}
// Prime.