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){