Skip to content

Commit

Permalink
Do not create particles for Pride.Default pride
Browse files Browse the repository at this point in the history
  • Loading branch information
catapillie committed Apr 27, 2022
1 parent 05a1fd8 commit 49055bf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Code/PrideData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,13 @@ private static ReadOnlyDictionary<Pride, ParticleType[]> BuildParticleTypes(Part
Dictionary<Pride, ParticleType[]> prideParticleTypes = new();

foreach (var kv in prideColors) {
ParticleType[] particleTypes = new ParticleType[kv.Value.Length];
for (int i = 0; i < particleTypes.Length; i++)
particleTypeModifier(particleTypes[i] = new ParticleType(from), kv.Value[i]);
if (kv.Key != Pride.Default) {
ParticleType[] particleTypes = new ParticleType[kv.Value.Length];
for (int i = 0; i < particleTypes.Length; i++)
particleTypeModifier(particleTypes[i] = new ParticleType(from), kv.Value[i]);

prideParticleTypes[kv.Key] = particleTypes;
prideParticleTypes[kv.Key] = particleTypes;
}
}

return new(prideParticleTypes);
Expand Down

0 comments on commit 49055bf

Please sign in to comment.