From 70f30c45765cecf418f447ddd14a1f63eb37ab0b Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 6 Jul 2021 19:11:44 -0500 Subject: [PATCH] refactor: render tick --- packages/physics/src/traits/emitter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/physics/src/traits/emitter.js b/packages/physics/src/traits/emitter.js index 25c8c07..378338b 100644 --- a/packages/physics/src/traits/emitter.js +++ b/packages/physics/src/traits/emitter.js @@ -141,7 +141,7 @@ export default (latus) => class Emitter extends decorate(Trait) { this.#emitter.destroy(); return true; } - this.tick(elapsed); + this.renderTick(elapsed); return false; }; hooks.destroy = () => () => 0 === this.#streams.length; @@ -330,7 +330,7 @@ export default (latus) => class Emitter extends decorate(Trait) { : []; } - tick(elapsed) { + renderTick(elapsed) { this.#emitter.update(elapsed); for (let i = 0; i < this.#emissions.length; i++) { this.#emissions[i].tick(elapsed);