mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-05 00:17:33 +07:00
align opacity check with ItemBridge (#2036)
* align opacity check with ItemBridge * align opacity check with ItemBridge
This commit is contained in:
parent
f6d8658ee2
commit
3c4c046e1f
@ -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){
|
protected void drawLaser(float x1, float y1, float x2, float y2, float satisfaction, int size1, int size2){
|
||||||
int opacityPercentage = Core.settings.getInt("lasersopacity");
|
float opacity = Core.settings.getInt("lasersopacity") / 100f;
|
||||||
if(opacityPercentage == 0) return;
|
if(Mathf.zero(opacity)) return;
|
||||||
|
|
||||||
float opacity = opacityPercentage / 100f;
|
|
||||||
|
|
||||||
float angle1 = Angles.angle(x1, y1, x2, y2);
|
float angle1 = Angles.angle(x1, y1, x2, y2);
|
||||||
t1.trns(angle1, size1 * tilesize / 2f - 1.5f);
|
t1.trns(angle1, size1 * tilesize / 2f - 1.5f);
|
||||||
|
Loading…
Reference in New Issue
Block a user