mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
add - null-safe check to block.teamRegion
This commit is contained in:
parent
3e0eb4a875
commit
73a2b957ec
1 changed files with 3 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue