Particle fixes

This commit is contained in:
paulevsGitch 2020-12-29 20:45:39 +03:00
parent b8229d8c91
commit 6fea8084df
2 changed files with 7 additions and 1 deletions

View file

@ -37,9 +37,15 @@ public class ParticleJungleSpore extends AnimatedParticle {
float delta = ticks / 30F;
this.setColorAlpha(delta);
}
else if (this.age >= this.maxAge) {
this.setColorAlpha(0);
}
else if (this.age >= this.maxAge - 30) {
this.setColorAlpha((this.maxAge - this.age) / 30F);
}
else {
this.setColorAlpha(1);
}
this.velocityY -= 0.001F;
this.velocityX *= 0.99F;