From 30328e61a5b646de15682b17fe15e2d39a2d7f4a Mon Sep 17 00:00:00 2001 From: Elixias <61173114+LixieWulf@users.noreply.github.com> Date: Sat, 14 Dec 2024 11:29:52 -0700 Subject: [PATCH] Problematic detection fix (#10372) --- core/src/mindustry/type/Planet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/type/Planet.java b/core/src/mindustry/type/Planet.java index bbffb0901f..f99fba5fe6 100644 --- a/core/src/mindustry/type/Planet.java +++ b/core/src/mindustry/type/Planet.java @@ -413,7 +413,7 @@ public class Planet extends UnlockableContent{ Vec3 vec = intersect(ray, radius); if(vec == null) return null; vec.sub(position).rotate(Vec3.Y, getRotation()); - return sectors.min(t -> t.tile.v.dst2(vec)); + return sectors.min(t -> Tmp.v31.set(t.tile.v).setLength(radius).dst2(vec)); } /** @return the sector that is hit by this ray, or null if nothing intersects it. */