Skip to content

Commit

Permalink
Hide beam drill beams when hiding power lasers
Browse files Browse the repository at this point in the history
  • Loading branch information
BalaM314 committed Jan 16, 2025
1 parent 2235e7f commit 328a830
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/mindustry/world/blocks/production/BeamDrill.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import arc.util.*;
import arc.util.io.*;
import mindustry.annotations.Annotations.*;
import mindustry.core.*;
import mindustry.entities.units.*;
import mindustry.game.*;
import mindustry.gen.*;
Expand Down Expand Up @@ -273,7 +274,7 @@ public void draw(){
Draw.rect(block.region, x, y);
Draw.rect(topRegion, x, y, rotdeg());

if(isPayload()) return;
if(isPayload() || Mathf.zero(Renderer.laserOpacity)) return;

float opacity = (float) Core.settings.getInt("beamdrillopacity") / 100f;

Expand Down

0 comments on commit 328a830

Please sign in to comment.