Skip to content

Commit

Permalink
Fix spore blossom particle crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Electro593 committed Nov 23, 2023
1 parent 8ad4904 commit ec35285
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ public static void registerColoredRisingParticle(DefaultParticleType particleTyp

public static void registerColoredSporeBlossomParticles(DefaultParticleType fallingParticleType, DefaultParticleType airParticleType, float red, float green, float blue) {
ParticleFactoryRegistry.getInstance().register(fallingParticleType, provider -> (parameters, world, x, y, z, velocityX, velocityY, velocityZ) -> {
Particle particle = BlockLeakParticle.createFallingSporeBlossom(fallingParticleType, world, x, y, z, velocityX, velocityY, velocityZ);
SpriteBillboardParticle particle = BlockLeakParticle.createFallingSporeBlossom(fallingParticleType, world, x, y, z, velocityX, velocityY, velocityZ);
particle.setSprite(provider);
particle.setColor(red, green, blue);
return particle;
});
Expand Down

0 comments on commit ec35285

Please sign in to comment.