mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Remove NullPointerExeption error (#4624)
This commit is contained in:
parent
47ec13eef4
commit
86c702861e
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ public class Block extends UnlockableContent{
|
|||
TextureRegion reg = getRequestRegion(req, list);
|
||||
Draw.rect(reg, req.drawx(), req.drawy(), !rotate ? 0 : req.rotation * 90);
|
||||
|
||||
if(req.worldContext && player != null && teamRegion.found()){
|
||||
if(req.worldContext && player != null && teamRegion != null && teamRegion.found()){
|
||||
if(teamRegions[player.team().id] == teamRegion) Draw.color(player.team().color);
|
||||
Draw.rect(teamRegions[player.team().id], req.drawx(), req.drawy());
|
||||
Draw.color();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue