Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken 2020-05-12 09:41:12 -04:00
commit 0663d8067a

View File

@ -132,10 +132,8 @@ public class PowerNode extends PowerBlock{
}
protected void drawLaser(float x1, float y1, float x2, float y2, float satisfaction, int size1, int size2){
int opacityPercentage = Core.settings.getInt("lasersopacity");
if(opacityPercentage == 0) return;
float opacity = opacityPercentage / 100f;
float opacity = Core.settings.getInt("lasersopacity") / 100f;
if(Mathf.zero(opacity)) return;
float angle1 = Angles.angle(x1, y1, x2, y2);
t1.trns(angle1, size1 * tilesize / 2f - 1.5f);