diff --git a/core/src/mindustry/world/blocks/power/PowerNode.java b/core/src/mindustry/world/blocks/power/PowerNode.java index 2f100e7476..64f0bd38dc 100644 --- a/core/src/mindustry/world/blocks/power/PowerNode.java +++ b/core/src/mindustry/world/blocks/power/PowerNode.java @@ -158,16 +158,14 @@ public class PowerNode extends PowerBlock{ } protected void setupColor(float satisfaction){ - float fract = 1f - satisfaction; - - Draw.color(laserColor1, laserColor2, fract * 0.86f + Mathf.absin(3f, 0.1f)); + Draw.color(laserColor1, laserColor2, (1f - satisfaction) * 0.86f + Mathf.absin(3f, 0.1f)); Draw.alpha(renderer == null ? 0.5f : renderer.laserOpacity); } protected void drawLaser(Team team, float x1, float y1, float x2, float y2, int size1, int size2){ - float angle1 = Angles.angle(x1, y1, x2, y2); - float vx = Mathf.cosDeg(angle1), vy = Mathf.sinDeg(angle1); - float len1 = size1 * tilesize / 2f - 1.5f, len2 = size2 * tilesize / 2f - 1.5f; + float angle1 = Angles.angle(x1, y1, x2, y2), + vx = Mathf.cosDeg(angle1), vy = Mathf.sinDeg(angle1), + len1 = size1 * tilesize / 2f - 1.5f, len2 = size2 * tilesize / 2f - 1.5f; Drawf.laser(team, laser, laserEnd, x1 + vx*len1, y1 + vy*len1, x2 - vx*len2, y2 - vy*len2, 0.25f); } diff --git a/gradle.properties b/gradle.properties index 8197d35f16..e304188492 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m -archash=ac5a2026930d5e7cee6596d61276ee7f29aa7801 +archash=9b130afd1b8b6899c8c39843622842930c8ddcbf