From 73a2b957ec502e185c3ccf60d87cceb28de8d8ae Mon Sep 17 00:00:00 2001 From: Diogo Piteira Castelos Date: Fri, 28 Nov 2025 00:35:51 +0000 Subject: [PATCH] add - null-safe check to block.teamRegion --- tools/src/mindustry/tools/Generators.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/src/mindustry/tools/Generators.java b/tools/src/mindustry/tools/Generators.java index fbd79b58a3..7ae9bdf189 100644 --- a/tools/src/mindustry/tools/Generators.java +++ b/tools/src/mindustry/tools/Generators.java @@ -331,7 +331,9 @@ public class Generators{ Pixmap shardTeamTop = null; - if(block.teamRegion.found()){ + if(block.teamRegion == null){ + Log.err("Block '@' has no team region!", block.name); + }else if(block.teamRegion.found()){ Pixmap teamr = get(block.teamRegion); for(Team team : Team.all){