add - null-safe check to block.teamRegion

This commit is contained in:
Diogo Piteira Castelos 2025-11-28 00:35:51 +00:00
parent 3e0eb4a875
commit 73a2b957ec

View file

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