From 251e5cc3e750f15060f113e68b6a1a1ced699dd0 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 7 May 2024 13:31:39 -0400 Subject: [PATCH] Pathfinder error fix --- core/src/mindustry/ai/ControlPathfinder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/ai/ControlPathfinder.java b/core/src/mindustry/ai/ControlPathfinder.java index f5ad811409..978fa525b6 100644 --- a/core/src/mindustry/ai/ControlPathfinder.java +++ b/core/src/mindustry/ai/ControlPathfinder.java @@ -455,7 +455,9 @@ public class ControlPathfinder implements Runnable{ }else{ //reset data for(var p : cluster.portals){ - p.clear(); + if(p != null){ + p.clear(); + } } }