This commit is contained in:
cha0s 2021-01-21 20:05:03 -06:00
parent 38d72aa5fd
commit 69cb73d643

View File

@ -181,7 +181,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
behaviors,
);
entity.on('destroy', () => {
this.#emitter.removeParticle(protonParticle);
protonParticle.destroy();
});
if (particle.listed) {
this.entity.list.addEntity(entity);