Update RegenProjector.java (#8768)

This commit is contained in:
Uenhe 2023-06-28 22:58:28 +08:00 committed by GitHub
parent f01df70d3f
commit 8c7523b3b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,6 @@ import arc.graphics.g2d.*;
import arc.math.*;
import arc.struct.*;
import arc.util.*;
import mindustry.*;
import mindustry.content.*;
import mindustry.entities.*;
import mindustry.entities.units.*;
@ -55,9 +54,11 @@ public class RegenProjector extends Block{
x *= tilesize;
y *= tilesize;
x += offset;
y += offset;
Drawf.dashSquare(baseColor, x, y, range * tilesize);
indexer.eachBlock(Vars.player.team(), Tmp.r1.setCentered(x, y, range * tilesize), b -> true, t -> {
indexer.eachBlock(player.team(), Tmp.r1.setCentered(x, y, range * tilesize), b -> true, t -> {
Drawf.selected(t, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f)));
});
}