Fixed magic particles not randomising their colours when they're supposed to

This commit is contained in:
Sollace 2021-12-27 02:15:17 +02:00
parent baa3700748
commit 6a84f5d8b6

View file

@ -37,7 +37,7 @@ public class MagicParticle extends SpriteBillboardParticle {
colorAlpha = 0.7F; colorAlpha = 0.7F;
colorGreen *= 0.3F; colorGreen *= 0.3F;
if (effect instanceof MagicParticleEffect) { if (effect instanceof MagicParticleEffect && ((MagicParticleEffect)effect).hasTint()) {
MagicParticleEffect parameters = (MagicParticleEffect)effect; MagicParticleEffect parameters = (MagicParticleEffect)effect;
colorRed = parameters.getColor().getX(); colorRed = parameters.getColor().getX();