private bool CheckCellType(ref MyVoxelContentCell cell, MyVoxelCellType type) { if (cell == null) return type == MyVoxelCellType.FULL; return cell.CellType == type; }