fix: handle floats
This commit is contained in:
parent
ee6de19717
commit
3b3ee97e70
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user