From 8ecd1fae6106530bdf428640f2d38671d0364c2b Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Tue, 8 Oct 2024 22:58:39 -0400 Subject: [PATCH] Another potential crash fix --- core/src/mindustry/client/navigation/AssistPath.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/client/navigation/AssistPath.kt b/core/src/mindustry/client/navigation/AssistPath.kt index a01d0cd4cc..ee7f8b843f 100644 --- a/core/src/mindustry/client/navigation/AssistPath.kt +++ b/core/src/mindustry/client/navigation/AssistPath.kt @@ -137,7 +137,7 @@ class AssistPath(val assisting: Player?, val type: Type = Type.Regular, var circ assisting ?: return if (type != Type.FreeMove && player.dst(assisting) > aStarTolerance) waypoints.draw() - if (Spectate.pos != assisting) assisting.unit().drawBuildPlans() // Don't draw plans twice + if (Spectate.pos != assisting) assisting.unit()?.drawBuildPlans() // Don't draw plans twice } override fun progress(): Float {