From 7a1b72ca2c760d7caf990be84d4ccf9842b0418a Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 16 Feb 2022 21:59:26 -0500 Subject: [PATCH] Fixed repair beam infinite range --- core/src/mindustry/type/weapons/RepairBeamWeapon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/type/weapons/RepairBeamWeapon.java b/core/src/mindustry/type/weapons/RepairBeamWeapon.java index e39d6e658f..010e32943f 100644 --- a/core/src/mindustry/type/weapons/RepairBeamWeapon.java +++ b/core/src/mindustry/type/weapons/RepairBeamWeapon.java @@ -125,7 +125,7 @@ public class RepairBeamWeapon extends Weapon{ if(targetBuildings){ //snap to closest building - Vars.world.raycastEachWorld(wx, wy, mount.aimX, mount.aimY, (x, y) -> { + Vars.world.raycastEachWorld(wx, wy, heal.lastEnd.x, heal.lastEnd.y, (x, y) -> { var build = Vars.world.build(x, y); if(build != null && build.team == unit.team && build.damaged()){ heal.target = build;