diff --git a/lib/schema.js b/lib/schema.js index 8e7a01a..15489d7 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -1911,7 +1911,7 @@ class Schema { getParticleEffects() { let previous = ''; - return this.raw.schema.attribute_controlled_attached_particles.reduce((obj, particle) => { + const effect = this.raw.schema.attribute_controlled_attached_particles.reduce((obj, particle) => { const particleName = particle.name; if (particleName !== previous) { obj[particleName] = particle.id; @@ -1933,6 +1933,9 @@ class Schema { previous = particleName; return obj; }, {}); + // id 326 has an empty name causing things to broke + if (!!effect['']) delete effect['']; + return effect; } getPaintKits() {