Fix for render mocking

This commit is contained in:
Anuken 2020-11-10 18:16:18 -05:00
parent ac4f2cac32
commit 887ce28fc2

View File

@ -153,7 +153,7 @@ public class PowerNode extends PowerBlock{
float fract = 1f - satisfaction;
Draw.color(laserColor1, laserColor2, fract * 0.86f + Mathf.absin(3f, 0.1f));
Draw.alpha(renderer.laserOpacity);
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){