Skip to content

Commit

Permalink
🐛 delete empty effect name
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 18, 2024
1 parent a4cd40d commit 30e7ba4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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() {
Expand Down

0 comments on commit 30e7ba4

Please sign in to comment.