f
This commit is contained in:
parent
1d8a78c559
commit
bc33d7d8f1
6 changed files with 17 additions and 19 deletions
src/main/java/net/shadow/client/helper/render
|
@ -39,7 +39,7 @@ public class Renderer {
|
|||
|
||||
public static void renderFadingBlocks(MatrixStack stack) {
|
||||
fades.removeIf(FadingBlock::isDead);
|
||||
for (FadingBlock fade : fades) {
|
||||
for (FadingBlock fade : new ArrayList<>(fades)) {
|
||||
long lifetimeLeft = fade.getLifeTimeLeft();
|
||||
double progress = lifetimeLeft / (double) fade.lifeTime;
|
||||
Color out = Util.modify(fade.outline, -1, -1, -1, (int) (fade.outline.getAlpha() * progress));
|
||||
|
|
Reference in a new issue