Minor power node optimizations

This commit is contained in:
Anuken
2024-07-23 11:55:09 -04:00
parent a594d796ad
commit 5ac90d6ed3
2 changed files with 2 additions and 3 deletions

View File

@@ -173,8 +173,7 @@ public class PowerNode extends PowerBlock{
}
protected void setupColor(float satisfaction){
Draw.color(laserColor1, laserColor2, (1f - satisfaction) * 0.86f + Mathf.absin(3f, 0.1f));
Draw.alpha(Renderer.laserOpacity);
Draw.color(Tmp.c1.set(laserColor1).lerp(laserColor2, (1f - satisfaction) * 0.86f + Mathf.absin(3f, 0.1f)).a(Renderer.laserOpacity));
}
public void drawLaser(float x1, float y1, float x2, float y2, int size1, int size2){