Browse Source

chore: minor refactor

tags/v0.10.6^2
Shaun 2 years ago
parent
commit
a0d4a25e0f
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      src/server/components/effects.js

+ 2
- 8
src/server/components/effects.js View File

@@ -241,15 +241,9 @@ module.exports = {
},

removeEffectByType: function (type) {
let effects = this.effects.filter(e => e.type === type);
const effects = this.effects.filter(e => e.type === type);

effects.forEach(e => {
this.destroyEffect(e);

this.syncRemove(e.id);
this.effects.spliceWhere(f => f === e);
});
effects.forEach(e => this.removeEffect(e.id));
},

getEffectByType: function (effectType) {


Loading…
Cancel
Save