From 8c7523b3b302af763c1263990a01be9386c84bd8 Mon Sep 17 00:00:00 2001 From: Uenhe <119563256+Uenhe@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:58:28 +0800 Subject: [PATCH] Update RegenProjector.java (#8768) --- core/src/mindustry/world/blocks/defense/RegenProjector.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/defense/RegenProjector.java b/core/src/mindustry/world/blocks/defense/RegenProjector.java index 10c1126695..69bbb61116 100644 --- a/core/src/mindustry/world/blocks/defense/RegenProjector.java +++ b/core/src/mindustry/world/blocks/defense/RegenProjector.java @@ -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))); }); }