Tweaks potions some more

This commit is contained in:
Markil3
2021-03-02 10:35:45 -07:00
parent 8798691dc0
commit fb52f20d14

View File

@@ -613,9 +613,9 @@ public class TimerUtils
MathHelper.sin(7000F / (effectinstance.getDuration() + 16F * (float) Math.PI)) * 50F / (effectinstance MathHelper.sin(7000F / (effectinstance.getDuration() + 16F * (float) Math.PI)) * 50F / (effectinstance
.getDuration() + 100F) + 0.5F; .getDuration() + 100F) + 0.5F;
} }
else if (effectinstance.getDuration() <= BLINK_TIME + 10) else if (effectinstance.getDuration() <= BLINK_TIME + potion.getFadeInTime())
{ {
effectAlpha = -(effectinstance.getDuration() - 200) / 22F + 0.454F; effectAlpha = -(effectinstance.getDuration() - BLINK_TIME) / 22F + 0.454F;
} }
else else
{ {