This commit is contained in:
0x3C50 2022-03-31 23:55:20 +02:00
parent 1d8a78c559
commit bc33d7d8f1
6 changed files with 17 additions and 19 deletions
src/main/java/net/shadow/client/helper/render

View file

@ -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));