diff --git a/zombies/src/main/java/org/phantazm/zombies/coin/component/BasicTransactionMessager.java b/zombies/src/main/java/org/phantazm/zombies/coin/component/BasicTransactionMessager.java index 6bf558445..1091ed1e3 100644 --- a/zombies/src/main/java/org/phantazm/zombies/coin/component/BasicTransactionMessager.java +++ b/zombies/src/main/java/org/phantazm/zombies/coin/component/BasicTransactionMessager.java @@ -76,12 +76,12 @@ private ComponentLike lerpColorRecursive(Component component, float progress) { children.add(lerpColorRecursive(child, progress)); } - TextColor oldColor = component.color(); - if (oldColor == null) { - oldColor = coinsInfo.gradientFrom(); + TextColor toColor = component.color(); + if (toColor == null) { + toColor = coinsInfo.gradientTo(); } - TextColor newColor = TextColor.lerp(progress, oldColor, coinsInfo.gradientTo()); + TextColor newColor = TextColor.lerp(progress, coinsInfo.gradientFrom(), toColor); return component.children(children).color(newColor); }