From ce3a6e5299e5a4efe7bc153f6a871c81e741a127 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 25 Nov 2024 14:32:16 -0500 Subject: [PATCH] Fixed tests --- core/src/mindustry/world/Tile.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/Tile.java b/core/src/mindustry/world/Tile.java index 95282758dd..45fad8a3e0 100644 --- a/core/src/mindustry/world/Tile.java +++ b/core/src/mindustry/world/Tile.java @@ -293,7 +293,9 @@ public class Tile implements Position, QuadTreeObject, Displayable{ if(build != null){ build.onProximityUpdate(); } - pathfinder.updateTile(this); + if(!world.isGenerating() && pathfinder != null){ + pathfinder.updateTile(this); + } } public boolean isEditorTile(){