Skip to content

Commit

Permalink
Add null check to refreshing cell lighting in height tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Jun 25, 2024
1 parent 8a00b59 commit 2b1fd2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private void RefreshLighting()
{
var cellCoords = totalProcessedCells[i];
var cell = Map.GetTile(cellCoords);
cell.RefreshLighting(Map.Lighting, MutationTarget.LightingPreviewState);
cell?.RefreshLighting(Map.Lighting, MutationTarget.LightingPreviewState);
}
}

Expand Down

0 comments on commit 2b1fd2a

Please sign in to comment.