fix: handle floats

This commit is contained in:
cha0s 2019-11-12 23:03:37 -06:00
parent ee6de19717
commit 3b3ee97e70

View File

@ -186,7 +186,7 @@ export class Emitter extends decorate(Trait) {
this.entity.on('destroy', removeEmission);
ticker.on('tick', () => {
this.entity.emitParticleJson(mergedJson);
if (0 === --count) {
if (0 >= --count) {
removeEmission();
}
});